EmbeddedServer { public static EmbeddedServer getInstance(String webappDirLocation) { if (server == null) { synchronized (EmbeddedServer.class) { if (server == null) { server = new EmbeddedServer(webappDirLocation); server.start(); } } } return server; } private  EmbeddedServer(String webappDirLocation); private  EmbeddedServer(String webappDirLocation, int port); static void main(String[] args); static EmbeddedServer getInstance(String webappDirLocation); int getPort(); void start(); void shutdown();  }
@Test public void test() throws Throwable { String webappDirLocation = "../../../eagle-webservice/target/eagle-service"; EmbeddedServer.getInstance(webappDirLocation); }