List objectList = (List) objects[0];
assertArrayEquals(new Object[]{"James", "Bob"}, objectList.toArray());
}
public void testNodeNavigationProperty() throws Exception {
Node z = new Node(null, "z");
Node y = new Node(null, "y");
List children = new ArrayList();
children.add(y);
children.add(z);
Node x = new Node(null, "x", children);
children = new ArrayList();
children.add(x);
Node b = new Node(null, "b", children);
// @todo should try with just a node as the child
List value = (List) InvokerHelper.getProperty(b, "x");
assertArrayEquals(new Object[]{x}, value.toArray());