Application { public static void main(String[] args) { Integer serverPort = PORT; try { if (args.length > 0) { serverPort = Integer.valueOf(args[0]); } } catch (NumberFormatException e) { LOGGER.error("Error in input parameters"); } EngineContext.applicationInitialization(); EngineContext.componentsInitialization(); AgentComponent.init(); HttpServerManager.start(serverPort); }  static void main(String[] args);  }
@Test public void applicationTest() throws InterruptedException { String[] args = new String[]{"F:\\github\\dcsec-collector-engine\\engine-bootstrap\\src\\test\\resources\\application.properties"}; Application.main(args); Thread.sleep(1000000000); }