.starter("start2")
.stopper("stop2")
.manage(c);
Container yan = createYanContainer();
yan.registerComponent("target", c);
Automobile a = (Automobile)yan.getInstance("target");
assertFalse(a.isRunning1());
assertFalse(a.isRunning2());
man1.start();
assertTrue(a.isRunning1());
assertFalse(a.isRunning2());
man2.start();
assertTrue(a.isRunning1());
assertTrue(a.isRunning2());
man1.stop();
assertFalse(a.isRunning1());
assertTrue(a.isRunning2());
man2.stop();
assertFalse(a.isRunning1());
assertFalse(a.isRunning2());
}