public void testLifeycles()
throws Throwable{
final Container yan = new DefaultContainer();
final Component real_engine =
Components.useKey("real engine").singleton(new ThreadLocalScope());
final DefaultLifecycleDescriptor desc = new DefaultLifecycleDescriptor();
desc.setCloser(new Phase(desc.getCloser().getPhaseKey(), ExceptionHandlers.suppresser()));
desc.setStopper(new Phase(desc.getStopper().getPhaseKey(), ExceptionHandlers.suppresser()));
final DefaultLifecycleManager lm = new DefaultLifecycleManager(desc);
final DefaultLifecycleManager.DefaultLifecycle lc = lm.newLifecycle()
.starter("start")
.stopper("stop")
.initializer("initialize")