assertEquals("bean", testBean.getNodeName());
assertEquals("http://www.springframework.org/schema/beans", testBean.getNamespaceURI());
assertEquals("org.springframework.beans.TestBean", testBean.getAttribute("class"));
assertTrue(testBean.hasAttribute("class"));
assertFalse(testBean.hasAttribute("fooAttr"));
Attr classAttr = testBean.getAttributeNode("class");
assertEquals("class", classAttr.getName());
assertEquals("org.springframework.beans.TestBean", classAttr.getValue());
assertEquals("http://www.springframework.org/schema/beans", classAttr.getNamespaceURI());
assertEquals("class", classAttr.getNodeName());
// CDATA attribute
Element ageProperty = (Element) testBean.getChildNodes().item(0);
assertEquals(1, ageProperty.getAttributes().getLength());
assertEquals("age", ageProperty.getAttribute("name"));
assertEquals("<10>", ageProperty.getNodeValue());