UserService extends RestService { public Flux<UserGuildData> getCurrentUserGuilds(Map<String, Object> queryParams) { return Routes.CURRENT_USER_GUILDS_GET.newRequest() .query(queryParams) .exchange(getRouter()) .bodyToMono(UserGuildData[].class) .flatMapMany(Flux::fromArray); } UserService(Router router); Mono<UserData> getCurrentUser(); Mono<UserData> getUser(long userId); Mono<UserData> modifyCurrentUser(UserModifyRequest request); Flux<UserGuildData> getCurrentUserGuilds(Map<String, Object> queryParams); Mono<Void> leaveGuild(long guildId); Flux<ChannelData> getUserDMs(); Mono<ChannelData> createDM(DMCreateRequest request); Mono<ChannelData> createGroupDM(GroupDMCreateRequest request); Flux<ConnectionData> getUserConnections();  }
@Test public void testGetCurrentUserGuilds() { userService.getCurrentUserGuilds(Collections.emptyMap()).then().block(); }