JavaScriptComponent context =
new JavaScriptComponent("source", implClass2, new HashMap<String, Object>(), services, null, scope,
ArtifactFactory.createWireService(), null);
scope.register(context);
Operation<Type> operation = new Operation<Type>("greet", null, null, null, false, null);
TargetInvoker invoker = context.createTargetInvoker(null, operation);
assertEquals("foo", invoker.invokeTarget(new String[]{"foo"}));
scope.stop();
}