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;
}