assertEquals(nodes, node.getChildren());
}
public void testChildWithProperty() throws IOException, JSONException {
List<NodeDescription> nodes = new ArrayList<NodeDescription>();
NodeDescription child = new NodeDescription();
child.setName("c1");
PropertyDescription prop = new PropertyDescription();
prop.setName("c1p1");
prop.setValue("c1v1");
child.addProperty(prop);
nodes.add(child);
String json = this.toJsonObject(nodes).toString();
NodeDescription node = this.parse(json);
assertNotNull("Expecting node", node);
assertEquals(nodes, node.getChildren());
}