* Test the method execute() with a normal object with overloaded
* constructors, the method name "new" and valid arguments.
*/
public void testExecute_OverloadedConstructors() throws Exception {
Object[] arguments = new Object[] { new Object() };
Statement t = new Statement(MockObject.class, "new", arguments);
t.execute();
MockObject.assertCalled("new2", arguments);
arguments = new Object[] { "test" };
t = new Statement(MockObject.class, "new", arguments);
t.execute();
//FIXME: the following 2 commented assert cannot pass neither in RI nor in Harmony (HARMONY-4392),
// waiting for dev-list approval to fix Harmony implementation following spec
// MockObject.assertCalled("new3", arguments);
Object[] arguments2 = new Object[] { new Integer(1) };
t = new Statement(MockObject.class, "new", arguments2);
t.execute();
// MockObject.assertCalled("new1-2", arguments2);
}