WilmaServiceListener extends Service.Listener { @Override public void running() { logger.info(generateStartMessage()); }  @Override void running(); @Override void terminated(final State from); @Override void failed(final State from, final Throwable failure);  }
@Test public void testRunningShouldLogStartMessage() { Whitebox.setInternalState(underTest, "wilmaStartMessage", WILMA_START_MESSAGE); given(logFilePath.getLogFilePath().toAbsolutePath().toString()).willReturn(WILMA_START_MESSAGE); given(logFilePath.getAppLogFilePath().toAbsolutePath().toString()).willReturn(WILMA_START_MESSAGE); underTest.running(); verify(logger).info(WILMA_START_MESSAGE); }