public void testShutdown() throws PureException {
   EngineServer server = EngineServer.getInstance();
   long lStart = System.currentTimeMillis();
   server.shutdown();
   long lEnd = System.currentTimeMillis();
   System.out.println("time used: " + (lEnd - lStart) + "ms");
   assertTrue(server.getStatus().isStopped());
 }
 public void testGetEngineBeans() {
   EngineServer server = EngineServer.getInstance();
   Iterator itr = server.getEngineBeans().iterator();
   EngineBean bean;
   while (itr.hasNext()) {
     bean = (EngineBean) itr.next();
     System.out.println(bean.toString());
   }
 }
 public void testGetEngineBean() {
   EngineServer server = EngineServer.getInstance();
   EngineBean bean = server.getEngineBean("force");
   assertNotNull(bean);
 }
 public void testGetStatus() {
   EngineServer server = EngineServer.getInstance();
   System.out.println("EngineServer status: " + server.getStatus().getFlag());
   // assertTrue(server.getStatus().isStopped());
 }