/**
* Tests a session-to-stateless scoped wire is setup properly by the runtime
*/
public void testSessionToStateless() throws Exception{
RuntimeContext runtime = MockFactory.createJavaRuntime();
Context ctx = runtime.getSystemContext().getContext("tuscany.system.child");
Assert.assertNotNull(ctx);
runtime.getRootContext().registerModelObject(MockFactory.createCompositeComponent("test"));
CompositeContext testCtx = (CompositeContext) runtime.getRootContext().getContext("test");
Assert.assertNotNull(testCtx);
testCtx.registerModelObject(MockFactory.createModule(Scope.SESSION,Scope.INSTANCE));