/**
* Tests the runtime can be bootstrapped with Java builders and two module-scoped Java-based components can be wired
*/
public void testRuntimeBoot() throws Exception{
RuntimeContext runtime = MockFactory.createJavaRuntime();
Context ctx = runtime.getSystemContext().getContext(MockFactory.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());
testCtx.publish(new ModuleStart(this));
GenericComponent source = (GenericComponent)testCtx.getContext("source").getInstance(null);
Assert.assertNotNull(source);