assertEquals(element, element.getChild("one").getParent());
}
@Test
public void testSetAttributes() {
ObjectNodeImpl element = new ObjectNodeImpl(parseJson("{ \"one\" : 2, \"b\" : 2.2 }"));
assertEquals("2", element.getAttribute("one"));
element.setAttribute("one", "new");
assertEquals("new", element.getAttribute("one"));
assertEquals("2.2", element.getChild("b").getValue());
element.getChild("b").setValue("maybe");
assertEquals("maybe", element.getChild("b").getValue());
}