ManageAudienceClientImpl implements ManageAudienceClient { @Override public CompletableFuture<BotApiResponse> updateAudienceGroupAuthorityLevel( @Body UpdateAudienceGroupAuthorityLevelRequest request) { return toBotApiFuture(retrofitImpl.updateAudienceGroupAuthorityLevel(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 updateAudienceGroupAuthorityLevel() throws Exception { final UpdateAudienceGroupAuthorityLevelRequest request = UpdateAudienceGroupAuthorityLevelRequest .builder() .authorityLevel(AudienceGroupAuthorityLevel.PRIVATE) .build(); whenCall(retrofitMock.updateAudienceGroupAuthorityLevel(request), null); final BotApiResponse actual = target.updateAudienceGroupAuthorityLevel(request).get(); verify(retrofitMock, only()).updateAudienceGroupAuthorityLevel(request); assertThat(actual).isEqualTo(BOT_API_SUCCESS_RESPONSE); }