@Test
public void testGetNamespaceResolverFromBrokenXml_root() throws Exception {

    assertEquals(getNamespaceResolverFromBrokenXml("<root xmlns:a='foo'").getURIForPrefix("a", false), "foo");
    assertEquals(getNamespaceResolverFromBrokenXml("<root xmlns:a='bar' ").getURIForPrefix("a", false), "bar");
    assertEquals(getNamespaceResolverFromBrokenXml("<root xmlns:a='baz' b='").getURIForPrefix("a", false), "baz");
    assertEquals(getNamespaceResolverFromBrokenXml("<root xmlns:a='qux' b=\"").getURIForPrefix("a", false), "qux");
}