*
* A method with a parameter - existed at first - then it was changed: DIFFERENT RETURN TYPE
*/
@Test
public void test_getDeclaredMethod_param_ChangedReturnType() throws Exception {
Result r = getDeclaredMethod("changeReturn", String.class);
assertMethod("public java.lang.String " + TARGET_CLASS_NAME + ".changeReturn(java.lang.String)", r);
r = invoke((Method) r.returnValue, "hoho");
Assert.assertEquals("hohoho!", r.returnValue);
reloadType("002");
Result m = getDeclaredMethod("changeReturn", String.class);
assertMethod("public int " + TARGET_CLASS_NAME + ".changeReturn(java.lang.String)", m);
r = invoke((Method) m.returnValue, "hoho");
Assert.assertEquals(4, r.returnValue);
}