class HealthTest { ... @Test fun `readiness with three passing checks`() { val checks = listOf(check(true, "first"), check(true, "second"), check(true, "third")) assertThat(Health(checks = checks)(Request(GET, "/readiness")), hasStatus(SERVICE_UNAVAILABLE).and(hasBody("overall=true\nfirst=true\nsecond=true\nthird=true"))) } ... }