echoMethod = Echo.class.getDeclaredMethod("echo", String.class);
Assert.assertNotNull(echoMethod);
}
public void testScopedInvoke() throws Exception {
ScopeContainer scope = new ModuleScopeContainer(null);
scope.start();
JavaAtomicComponent component =
MockFactory.createJavaComponent("foo", scope, Echo.class);
scope.register(component);
JavaTargetInvoker invoker = new JavaTargetInvoker(echoMethod, component);
invoker.setCacheable(false);
assertEquals("foo", invoker.invokeTarget("foo"));
scope.stop();
}