DocumentAccessorImpl implements DocumentAccessor { @Override public Element getElement(Document xmlDocument, String xPathExpr, String... arguments) throws DocumentAccessorException { final Node node = getNode(xmlDocument, xPathExpr, arguments); return (Element) node; }  @SuppressWarnings("unchecked") @Override Document addingStylesheet(Document doc,
			String xslHref); @Override Element getElement(Document xmlDocument, String xPathExpr,
			String... arguments); @Override Node getNode(Document xmlDocument, String xPathExpr,
			String... arguments); @Override NodeList getNodeList(Document xmlDocument, String xPathExpr,
			String... arguments); @Override ProcessingInstruction getProcessingInstruction(Document xmlDocument,
			String xPathExpr, String... arguments);  }
@Test public void testGetElement() throws XPathExpressionException { String xPath = "/hl7:ClinicalDocument Element element = sut.getElement(c32Doc, xPath); assertNotNull(element); assertEquals("CityName", element.getTextContent()); }