static XmlNode create(String xmlString) {
        try (InputStream stream = new ByteArrayInputStream(xmlString.getBytes(UTF_8))) {
            DocumentBuilderFactory dbf = XmlUtil.getNsAwareDocumentBuilderFactory();
            Document doc = dbf.newDocumentBuilder().parse(stream);
            return new XmlNode(doc.getDocumentElement());
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
@Test(expected = RuntimeException.class)
    public void parseError() {
        // given
        String xml = "malformed-xml";

        // when
        XmlNode.create(xml);

        // then
        // throws exception
    }