WilmaServiceListener extends Service.Listener { @Override public void terminated(final State from) { logger.info(TERMINATED_MESSAGE); }  @Override void running(); @Override void terminated(final State from); @Override void failed(final State from, final Throwable failure);  }
@Test public void testTerminatedShouldLogMessage() { State state = Mockito.mock(State.class); underTest.terminated(state); verify(logger).info(TERMINATED_MESSAGE); }