MethodCall methodCall = new MethodCall("someMethod",
new Object[] { "abc" },
new Class[] { String.class });
TargetSubclass target = new TargetSubclass();
Object result = methodCall.invoke(target);
Assert.assertEquals("ABC", result);
}
/**
* This tests whether overriden methods are correctly identified and invoked.