### Question:
TaskLogger implements CliLogger { @Override public void finished(ReleaseResult releaseResult) { if(sendMessage) { this.sendFinishMessage(releaseResult); } } TaskLogger(Path logFile); @Override void enableSendStompMessage(Integer taskId, SimpMessagingTemplate messagingTemplate, String destinationPrefix); @Override void error(Throwable e); @Override void error(String pattern, Object... arguments); @Override void info(String pattern, Object... arguments); @Override void newLine(); @Override void log(String pattern, Object... arguments); @Override void log(String content); @Override void finished(ReleaseResult releaseResult);  }### Answer:
@Test public void finished_disable_send_stop_message() throws IOException { MockitoAnnotations.initMocks(this); CliLogger logger = new TaskLogger(logFile); logger.finished(ReleaseResult.PASSED); String content = Files.readString(logFile); assertThat(content).isEmpty(); }