GatewayService extends RestService { public Mono<GatewayData> getGateway() { return Routes.GATEWAY_GET.newRequest() .exchange(getRouter()) .bodyToMono(GatewayData.class); } GatewayService(Router router); Mono<GatewayData> getGateway(); Mono<GatewayData> getGatewayBot();  }
@Test public void testGetGateway() { gatewayService.getGateway().block(); }