### Question:
SimpleScheduledTask implements Runnable { @Override public void run() { logger.debug("SimpleScheduledTask is now running, myParameter='{}'", myParameter); }  @Override void run();  }### Answer:
@Test public void run() { SimpleScheduledTask.Config config = mock(SimpleScheduledTask.Config.class); when(config.myParameter()).thenReturn("parameter value"); fixture.activate(config); fixture.run(); List<LoggingEvent> events = logger.getLoggingEvents(); assertEquals(1, events.size()); LoggingEvent event = events.get(0); assertEquals(Level.DEBUG, event.getLevel()); assertEquals(1, event.getArguments().size()); assertEquals("parameter value", event.getArguments().get(0)); }