public void testMethod() {
Method m;
try {
m=TargetClass.class.getMethod("foo", new Class[]{int.class, String.class});
MethodCall mc=new MethodCall(m, new Object[]{new Integer(22), "Bela"});
Assert.assertEquals(mc.invoke(target), Boolean.TRUE);
}
catch(Throwable t) {
assert false : t.toString();
}
}