assertEquals(1, resource.getInitCount());
assertEquals(0, resource.getDestroyedCount());
//final DefaultLifecycle lc = new DefaultLifecycle(yan);
//lc.dispose();
lm.dispose();
assertEquals(1, engine.getStarted());
assertEquals(1, engine.getStopped());
assertEquals(1, engine.getInit());
assertEquals(1, engine.getDisposed());