public void testScenario1() throws Exception {
RuntimeContext runtime = createScenario1Runtime();
CompositeContext root = runtime.getRootContext();
SystemCompositeContext system = runtime.getSystemContext();
CompositeContext system1 = (CompositeContext) system.getContext("system1");
system1.publish(new ModuleStart(this));
Target target = (Target) system.getContext("target.system.ep").getInstance(null);
assertNotNull(target);
CompositeContext app1 = (CompositeContext) root.getContext("app1");
app1.publish(new ModuleStart(this));
CompositeContext app1a = (CompositeContext) app1.getContext("app1a");
app1a.publish(new ModuleStart(this));
app1a.publish(new ModuleStop(this));
app1.publish(new ModuleStop(this));
Source source = (Source) app1a.getContext("source").getInstance(null);
assertEquals(target, source.getTarget());
source.getTarget().getString();