public void parse() throws Exception {
// Arrange
String xmlContent = convertXMLFileToString("/someXML.xml");
// Act
Document document = XMLParser.parse(xmlContent);
// Assert
Element documentElement = document.getDocumentElement();
assertEquals("beans", documentElement.getTagName());
Element beans = (Element) document.getFirstChild();
assertEquals("beans", beans.getTagName());
assertNull(beans.getNextSibling());
assertNull(beans.getPreviousSibling());
Element testBean = document.getElementById("testBean");
NodeList beanList = document.getElementsByTagName("bean");
assertEquals(2, beanList.getLength());
assertEquals("testBean", beanList.item(0).getAttributes().getNamedItem("id").getNodeValue());
assertEquals("bean", testBean.getTagName());
assertEquals("bean", testBean.getNodeName());