LineMessagingClientImpl implements LineMessagingClient { @Override public CompletableFuture<RichMenuIdResponse> getRichMenuIdOfUser(final String userId) { return toFuture(retrofitImpl.getRichMenuIdOfUser(userId)); }  @Override CompletableFuture<BotApiResponse> replyMessage(final ReplyMessage replyMessage); @Override CompletableFuture<BotApiResponse> pushMessage(final PushMessage pushMessage); @Override CompletableFuture<BotApiResponse> multicast(final Multicast multicast); @Override CompletableFuture<BotApiResponse> broadcast(Broadcast broadcast); @Override CompletableFuture<BotApiResponse> narrowcast(Narrowcast narrowcast); @Override CompletableFuture<NarrowcastProgressResponse> getNarrowcastProgress(String requestId); @Override CompletableFuture<MessageQuotaResponse> getMessageQuota(); @Override CompletableFuture<QuotaConsumptionResponse> getMessageQuotaConsumption(); @Override CompletableFuture<NumberOfMessagesResponse> getNumberOfSentReplyMessages(String date); @Override CompletableFuture<NumberOfMessagesResponse> getNumberOfSentPushMessages(String date); @Override CompletableFuture<NumberOfMessagesResponse> getNumberOfSentMulticastMessages(String date); @Override CompletableFuture<NumberOfMessagesResponse> getNumberOfSentBroadcastMessages(String date); @Override CompletableFuture<UserProfileResponse> getProfile(final String userId); @Override CompletableFuture<UserProfileResponse> getGroupMemberProfile(
            final String groupId, final String userId); @Override CompletableFuture<UserProfileResponse> getRoomMemberProfile(
            final String roomId, final String userId); @Override CompletableFuture<MembersIdsResponse> getGroupMembersIds(
            final String groupId, final String start); @Override CompletableFuture<MembersIdsResponse> getRoomMembersIds(
            final String roomId, final String start); @Override CompletableFuture<BotApiResponse> leaveGroup(final String groupId); @Override CompletableFuture<BotApiResponse> leaveRoom(final String roomId); @Override CompletableFuture<GroupSummaryResponse> getGroupSummary(final String groupId); @Override CompletableFuture<GroupMemberCountResponse> getGroupMemberCount(String groupId); @Override CompletableFuture<RoomMemberCountResponse> getRoomMemberCount(String roomId); @Override CompletableFuture<RichMenuResponse> getRichMenu(final String richMenuId); @Override CompletableFuture<RichMenuIdResponse> createRichMenu(final RichMenu richMenu); @Override CompletableFuture<BotApiResponse> deleteRichMenu(final String richMenuId); @Override CompletableFuture<RichMenuIdResponse> getRichMenuIdOfUser(final String userId); @Override CompletableFuture<BotApiResponse> linkRichMenuIdToUser(
            final String userId, final String richMenuId); @Override CompletableFuture<BotApiResponse> linkRichMenuIdToUsers(List<String> userIds, String richMenuId); @Override CompletableFuture<BotApiResponse> unlinkRichMenuIdFromUser(final String userId); @Override CompletableFuture<BotApiResponse> unlinkRichMenuIdFromUsers(List<String> userIds); @Override CompletableFuture<RichMenuListResponse> getRichMenuList(); @Override CompletableFuture<BotApiResponse> setDefaultRichMenu(final String richMenuId); @Override CompletableFuture<RichMenuIdResponse> getDefaultRichMenuId(); @Override CompletableFuture<BotApiResponse> cancelDefaultRichMenu(); @Override CompletableFuture<IssueLinkTokenResponse> issueLinkToken(String userId); @Override CompletableFuture<GetFriendsDemographicsResponse> getFriendsDemographics(); @Override CompletableFuture<GetNumberOfMessageDeliveriesResponse> getNumberOfMessageDeliveries(String date); @Override CompletableFuture<GetNumberOfFollowersResponse> getNumberOfFollowers(String date); @Override CompletableFuture<GetMessageEventResponse> getMessageEvent(String requestId);  }
@Test public void getRichMenuIdOfUserTest() throws Exception { whenCall(retrofitMock.getRichMenuIdOfUser(any()), RICH_MENU_ID_RESPONSE); final RichMenuIdResponse richMenuIdResponse = target.getRichMenuIdOfUser("ID").get(); verify(retrofitMock, only()).getRichMenuIdOfUser("ID"); assertThat(richMenuIdResponse).isEqualTo(RICH_MENU_ID_RESPONSE); }