InviteService extends RestService { public Mono<InviteData> getInvite(String inviteCode) { return Routes.INVITE_GET.newRequest(inviteCode) .exchange(getRouter()) .bodyToMono(InviteData.class); } InviteService(Router router); Mono<InviteData> getInvite(String inviteCode); Mono<InviteData> deleteInvite(String inviteCode, @Nullable String reason);  }
@Test public void testGetInvite() { inviteService.getInvite(inviteCode).block(); }