TargetInvocationConfiguration barInvocation = new TargetInvocationConfiguration(m);
barConfigs.put(m, barInvocation);
targetFooFactory.setConfiguration(new WireTargetConfiguration(null, fooConfigs, null, null));
TargetWireFactory targetBarFactory = new JDKTargetWireFactory();
targetBarFactory.setConfiguration(new WireTargetConfiguration(null, barConfigs, null, null));
ScopeContext ctx = new MockScopeContext();
defaultBuilder.completeTargetChain(targetFooFactory, FooContextFactory.class, ctx);
defaultBuilder.completeTargetChain(targetBarFactory, BarContextFactory.class, ctx);
assertEquals(FooInvoker.class, targetFooFactory.getConfiguration().getInvocationConfigurations().get(m).getTargetInvoker().getClass());
assertEquals(BarInvoker.class, targetBarFactory.getConfiguration().getInvocationConfigurations().get(m).getTargetInvoker().getClass());