QuitCallback implements Runnable { @Override public void run() { LOG.info("Instructing lifecycle to shut down."); lifecycle.shutdown(); } @Inject  QuitCallback(Lifecycle lifecycle); @Override void run();  }
@Test public void testInvoke() { shutdownCommand.execute(); control.replay(); handler.run(); }