### Question:
AgentImplementation implements Agent { @Override public void shutdown() { m_timer.cancel(); m_fanOutStreamSender.shutdown(); m_consoleListener.shutdown(); m_logger.info("finished"); } AgentImplementation(Logger logger,
                             File alternateFile,
                             boolean proceedWithoutConsole); @Override void run(); @Override void shutdown();  }### Answer:
@Test public void testConstruction() throws Exception { final File propertyFile = new File(getDirectory(), "properties"); final Agent agent = new AgentImplementation(m_logger, propertyFile, true); agent.shutdown(); verify(m_logger).info("finished"); verifyNoMoreInteractions(m_logger); }