### Question:
ShortenerHandler implements HttpHandler { Mono<ServerResponse> getAll(ServerRequest request) { log.info("getAll() -> "); return ServerResponse.ok() .contentType(MediaType.APPLICATION_JSON) .body(shortenerQuery.getAll(), ShortenerDto.class); } ShortenerHandler(ShortenerService shortenerService, ShortenerQuery shortenerQuery); @Override RouterFunction<ServerResponse> route();  }### Answer:
@Test public void getAll() { String userId = UUID.randomUUID().toString(); service.create(CreateShortener.builder() .url("www.tes.com") .userId(userId) .build()) .block().key(); webTestClient.get().uri("/shorteners").accept(MediaType.APPLICATION_JSON).exchange() .expectStatus().isOk() .expectHeader().contentType(MediaType.APPLICATION_JSON) .expectBody(); }