*
* Note: decided by definition position.
*/
public void testGetValue_UnboundedOverloadedConstructors() throws Exception {
Object[] arguments = new Object[] { new Object() };
Expression t = new Expression(MockObject.class, "new", arguments);
t.getValue();
MockObject.assertCalled("new2", arguments);
//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
arguments = new Object[] { "test" };
t = new Expression(MockObject.class, "new", arguments);
assertTrue(t.getValue() instanceof MockObject);
// MockObject.assertCalled("new3", arguments);
arguments = new Object[] { new Integer(1) };
t = new Expression(MockObject.class, "new", arguments);
assertTrue(t.getValue() instanceof MockObject);
// MockObject.assertCalled("new1-2", arguments);
}