TorqueCommandLineEvaluation implements CommandLineEvaluation { @Override public void shutdown(CommandLineArguments arguments) { nodeManager.removeAllNodes(); nodeManager.shutdown(); } TorqueCommandLineEvaluation(TorqueNodeManager nodeManager, CommandLineHandle handle, RmiServerForApi rmiServerForApi); @Override void state(CommandLineArguments arguments); @Override void shutdown(CommandLineArguments arguments); @Override void handleCommand(String command, CommandLineArguments arguments); @Override CommandLineHandle getCommandLineHandle(); TorqueNodeManager getNodeManager(); RmiServerForApi getRmiServerForApi();  }
@Test public void shutdown() { commandLineEvaluation.shutdown(null); verify(torqueNodeManager).removeAllNodes(); verify(torqueNodeManager).shutdown(); }