@Test
public void errorInLineMessagingClientLoggingTest() throws Exception {

    reset(lineMessagingClient);
    when(lineMessagingClient.replyMessage(any()))
            .thenReturn(new CompletableFuture<BotApiResponse>() {{
                completeExceptionally(new GeneralLineMessagingException("EXCEPTION HAPPEN!", null, null));
            }});
    // Do
    String systemOut = tapSystemOut(() -> {
        final CompletableFuture<List<TextMessage>> returnValue = new CompletableFuture<>();
        target.accept(returnValue);
        returnValue.complete(singletonList(new TextMessage("Reply Text")));
    });
    // Verify
    assertThat(systemOut)
            .contains("failed")
            .contains("EXCEPTION HAPPEN!");
}