RetryableLineMessagingClientImpl implements RetryableLineMessagingClient { @Override public CompletableFuture<BotApiResponse> broadcast(final UUID retryKey, final Broadcast broadcast) { return toBotApiResponseFuture(retrofitImpl.broadcast(retryKey.toString(), broadcast)); }  @Override CompletableFuture<BotApiResponse> pushMessage(final UUID retryKey, final PushMessage pushMessage); @Override CompletableFuture<BotApiResponse> multicast(final UUID retryKey, final Multicast multicast); @Override CompletableFuture<BotApiResponse> broadcast(final UUID retryKey, final Broadcast broadcast); @Override CompletableFuture<BotApiResponse> narrowcast(final UUID retryKey, final Narrowcast narrowcast);  }
@Test public void broadcast() { UUID retryKey = UUID.randomUUID(); whenCall(retrofitMock.broadcast(any(String.class), any(Broadcast.class)), BOT_API_SUCCESS_RESPONSE_BODY); final Broadcast broadcast = new Broadcast(singletonList(new TextMessage("text")), true); final BotApiResponse botApiResponse = target.broadcast(retryKey, broadcast).join(); verify(retrofitMock).broadcast(retryKey.toString(), broadcast); assertThat(botApiResponse).isEqualTo(BOT_API_SUCCESS_RESPONSE); }