EventContext ctx = new EventContextImpl();
StatelessScopeContext scope = new StatelessScopeContext(ctx);
scope.registerFactories(createConfigurations());
scope.start();
// first request
StatelessComponentImpl comp1 = (StatelessComponentImpl) scope.getContext("TestService1").getInstance(null);
Assert.assertNotNull(comp1);
// second request
StatelessComponentImpl comp2 = (StatelessComponentImpl) scope.getContext("TestService1").getInstance(null);
Assert.assertNotNull(comp2);
Assert.assertNotSame(comp1, comp2);
scope.stop();
}