So here's a simple test case:```fun Application.testableApplication() {
install(Routing) {
route("/test") {
get {
delay(100)
call.respond(HttpStatusCode.OK, "The Response")
}
}
}
}
class ApplicationTest {
@Test
fun testRequest() = withTestApplication(Application::testableApplication) {
with(handleRequest(HttpMethod.Get, "/test")) {
assertEquals(HttpStatusCode.OK, response.status())
assertEquals("The Response", response.content)
}
}
}```