Object arg1 = "mama";
Object arg2 = new Object();
Object arg3 = new Object();
Object arg4 = new Long(7);
Object[] oa = new Object[] { arg1, arg2, arg3, arg4 };
Expression t = new Expression(val, target, "method", oa);
assertSame(val, t.getValue());
assertSame(target, t.getTarget());
assertSame("method", t.getMethodName());
assertSame(oa, t.getArguments());
assertSame(arg1, t.getArguments()[0]);
assertSame(arg2, t.getArguments()[1]);
assertSame(arg3, t.getArguments()[2]);
assertSame(arg4, t.getArguments()[3]);
assertEquals("Object=ExpressionTest$MockParent.method("
+ "\"mama\", Object, Object, Long);", t.toString());
}