### Question:
ExtendedDocumentBuilder { public Document parse(InputStream in) throws SAXException, IOException, XMLStreamException { if (in == null && LOG.isLoggable(Level.FINE)) { LOG.fine("ExtendedDocumentBuilder trying to parse a null inputstream"); } if (parserFactory != null) { try { return parserFactory.newDocumentBuilder().parse(in); } catch (ParserConfigurationException e) { LOG.log(Level.SEVERE, "NEW_DOCUMENT_BUILDER_EXCEPTION_MSG"); } } return StaxUtils.read(in); } ExtendedDocumentBuilder(); void setValidating(boolean validate); Document parse(InputStream in);  }### Answer:
@Test public void testParse() throws Exception { ExtendedDocumentBuilder builder = new ExtendedDocumentBuilder(); String tsSource = "/org/apache/cxf/tools/common/toolspec/parser/resources/testtool1.xml"; Document doc = builder.parse(getClass().getResourceAsStream(tsSource)); assertEquals(doc.getXmlVersion(), "1.0"); }