### Question:
AggregationManager implements Managed { @Override public void stop() { logger.debug("Stopping Aggregation thread"); this.engine.stop(); } @Inject  AggregationManager(AggregationEngine engine); @Override void start(); @Override void stop();  }### Answer:
@Test void testShutdown() { new AggregationManager(engine).stop(); verify(engine).stop(); }