JamesAppSpringMain implements Daemon { public static void main(String[] args) throws Exception { long start = Calendar.getInstance().getTimeInMillis(); JamesAppSpringMain main = new JamesAppSpringMain(); main.init(null); long end = Calendar.getInstance().getTimeInMillis(); log.info("Apache James Server is successfully started in {} milliseconds.", end - start); }  static void main(String[] args); @Override void destroy(); @Override void init(DaemonContext arg0); @Override void start(); @Override void stop();  }
@Test public void testServer() throws Exception { JamesAppSpringMain.main(null); }