public void testRuntimeBuilderAutowire() throws Exception {
CompositeContext system = runtime.getSystemContext();
Component builder = factory.createSystemComponent("TestBuilder", ContextFactoryBuilder.class, TestBuilder.class, Scope.MODULE);
builder.getImplementation().setComponentType(MockFactory.getIntrospector().introspect(TestBuilder.class));
system.registerModelObject(builder);
system.publish(new ModuleStart(this));
Component module1 = MockFactory.createCompositeComponent("module1");
runtime.registerModelObject(module1);
runtime.getContext("module1");
Assert.assertTrue(((TestBuilder) system.getContext("TestBuilder").getInstance(null)).invoked());
system.publish(new ModuleStop(this));
}