@Test
public void testGetNamespaceResolverFromBrokenXml_default_ns() throws Exception {

    assertNull(getNamespaceResolverFromBrokenXml("<root>").getURIForPrefix("", true));
    assertNull(getNamespaceResolverFromBrokenXml("<root xmlns='xxx'>").getURIForPrefix("", false));
    assertEquals(getNamespaceResolverFromBrokenXml("<root xmlns='xxx'>").getURIForPrefix("", true), "xxx");
}