@Test
public void testGetNamespaceResolverFromBrokenXml_in_scope_with_default() throws Exception {

    final NamespaceResolver nsResolver = getNamespaceResolverFromBrokenXml("" +
            "<root xmlns='xxx'>" +
            "<foo xmlns='yyy'>" +
            "<bar");
    assertEquals(nsResolver.getURIForPrefix("", true), "yyy");
}