UserService extends RestService { public Mono<UserData> getCurrentUser() { return Routes.CURRENT_USER_GET.newRequest() .exchange(getRouter()) .bodyToMono(UserData.class); } 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 testGetCurrentUser() { userService.getCurrentUser().block(); }