Assert.assertNotNull(service2);
Assert.assertSame(service, service2);
}
public void testGetStatelessInstance() throws Exception {
CompositeContext mc = new CompositeContextImpl();
mc.setName("fooContext");
JavaAtomicContext c = new JavaAtomicContext("foo", new PojoObjectFactory<StatelessComponentImpl>(JavaIntrospectionHelper
.getDefaultConstructor(StatelessComponentImpl.class), null, null), false, null, null, true);
GenericComponent service = (GenericComponent) c.getInstance(null);
Assert.assertNotNull(service);
service.setString("foo");