NGrinderAgentStarter implements AgentConstants, CommonConstants { public void startMonitor() { printLog("***************************************************"); printLog("* Start nGrinder Monitor... "); printLog("***************************************************"); try { MonitorServer.getInstance().init(agentConfig); MonitorServer.getInstance().start(); } catch (Exception e) { LOG.error("ERROR: {}", e.getMessage()); printHelpAndExit("Error while starting Monitor", e); } } NGrinderAgentStarter(); void init(); String getStartMode(); String getVersion(); void startMonitor(); void startAgent(); static void main(String[] args); void checkDuplicatedRun(String startMode);  }
@Test public void testStartMonitor() { starter.startMonitor(); ThreadUtils.sleep(2000); starter.stopMonitor(); starter.stopMonitor(); }