### Question:
AgentDaemon implements Agent { public void shutdown() { m_sleeper.shutdown(); m_delegateAgent.shutdown(); } AgentDaemon(Logger logger, long sleepTime,  Agent agent);   AgentDaemon(Logger logger, long sleepTime, Agent agent, Sleeper sleeper); void run(); void shutdown();  }### Answer:
@Test public void testConstruction() throws Exception { final File propertyFile = new File(getDirectory(), "properties"); final Agent agent = new AgentImplementation(m_logger, propertyFile, false); final AgentDaemon daemon = new AgentDaemon(m_logger, 1000, agent); daemon.shutdown(); verify(m_logger).info(contains("finished")); verifyNoMoreInteractions(m_logger); }