ManageAudienceClientImpl implements ManageAudienceClient { @Override public CompletableFuture<CreateImpBasedAudienceGroupResponse> createImpBasedAudienceGroup( CreateImpBasedAudienceGroupRequest request) { return toFuture(retrofitImpl.createImpBasedAudienceGroup(request)); }  @Override CompletableFuture<CreateAudienceGroupResponse> createAudienceGroup(
            CreateAudienceGroupRequest request); @Override CompletableFuture<BotApiResponse> addAudienceToAudienceGroup(
            AddAudienceToAudienceGroupRequest request); @Override CompletableFuture<CreateClickBasedAudienceGroupResponse> createClickBasedAudienceGroup(
            CreateClickBasedAudienceGroupRequest request); @Override CompletableFuture<CreateImpBasedAudienceGroupResponse> createImpBasedAudienceGroup(
            CreateImpBasedAudienceGroupRequest request); @Override CompletableFuture<BotApiResponse> updateAudienceGroupDescription(
            long audienceGroupId, UpdateAudienceGroupDescriptionRequest request); @Override CompletableFuture<BotApiResponse> deleteAudienceGroup(long audienceGroupId); @Override CompletableFuture<GetAudienceGroupsResponse> getAudienceGroups(
            long page, String description, AudienceGroupStatus status, Long size,
            Boolean includesExternalPublicGroups, AudienceGroupCreateRoute createRoute); @Override CompletableFuture<GetAudienceDataResponse> getAudienceData(long audienceGroupId); @Override CompletableFuture<GetAudienceGroupAuthorityLevelResponse> getAudienceGroupAuthorityLevel(); @Override CompletableFuture<BotApiResponse> updateAudienceGroupAuthorityLevel(
            @Body UpdateAudienceGroupAuthorityLevelRequest request);  }
@Test public void createImpBasedAudienceGroup() throws Exception { CreateImpBasedAudienceGroupRequest request = CreateImpBasedAudienceGroupRequest.builder() .build(); CreateImpBasedAudienceGroupResponse response = CreateImpBasedAudienceGroupResponse.builder() .build(); whenCall(retrofitMock.createImpBasedAudienceGroup(any()), response); final CreateImpBasedAudienceGroupResponse actual = target.createImpBasedAudienceGroup(request).get(); verify(retrofitMock, only()).createImpBasedAudienceGroup(request); assertThat(actual).isEqualTo(response); }