ArtifactFactory.terminateWire(wire);
for (InboundInvocationChain chain : wire.getInvocationChains().values()) {
chain.setTargetInvoker(context.createTargetInvoker(null, chain.getOperation()));
}
context.addInboundWire(wire);
Greeting greeting = (Greeting) context.getServiceInstance("Greeting");
assertEquals("foo", greeting.greet("foo"));
scope.stop();
}