targets.get(0).setString("foo");
Assert.assertEquals("foo",target.getString());
}
private CompositeContext createContext() {
CompositeContextImpl context = new CompositeContextImpl();
context.setName("system.context");
List<ContextFactoryBuilder>builders = MockFactory.createSystemBuilders();
WireFactoryService wireService = new DefaultWireFactoryService(new MessageFactoryImpl(), new JDKWireFactoryFactory(), new DefaultPolicyBuilderRegistry());
builders.add(new JavaContextFactoryBuilder(wireService));
List<WireBuilder> wireBuilders = new ArrayList<WireBuilder>();
wireBuilders.add(new JavaTargetWireBuilder());
context.setConfigurationContext(new MockConfigContext(builders,wireBuilders));
return context;
}