private void doTest(final String html, final String expected) throws Exception {
DOMFragmentParser parser = new DOMFragmentParser();
HTMLDocument document = new HTMLDocumentImpl();
DocumentFragment fragment = document.createDocumentFragment();
InputSource source = new InputSource(new StringReader(html));
parser.parse(source, fragment);
// final OutputFormat of = new OutputFormat();
// of.setOmitXMLDeclaration(true);
// XMLSerializer s = new XMLSerializer(of);