assertEquals("java.lang.String", args[0]);
}
public void testResolveArguments_WithFunction() throws Exception {
ValangErrorArgumentsResolver resolver = new ValangErrorArgumentsResolver(new String[] { "length(name)" });
Object[] args = resolver.resolveArguments(new Person("Uri"));
assertNotNull(args);
assertEquals(1, args.length);
assertEquals(new Integer(3), args[0]);
}