VoiceService extends RestService { public Flux<RegionData> getVoiceRegions() { return Routes.VOICE_REGION_LIST.newRequest() .exchange(getRouter()) .bodyToMono(RegionData[].class) .flatMapMany(Flux::fromArray); } VoiceService(Router router); Flux<RegionData> getVoiceRegions();  }
@Test public void testGetVoiceRegions() { voiceService.getVoiceRegions().then().block(); }