}
public void testComponent() throws Exception {
ObjectName[] names = context.getPojoComponents();
assertEquals(1, names.length);
EchoComponent echo = new EchoComponent();
container.activateComponent(echo, "echo");
names = context.getPojoComponents();
assertNotNull(names);
assertEquals(2, names.length);
assertEquals(LifeCycleMBean.STARTED, echo.getCurrentState());
context.stopComponent("echo");
assertEquals(LifeCycleMBean.STOPPED, echo.getCurrentState());
}