@Test
public void testGetNamespaceResolverFromBrokenXml_out_scope_with_default() throws Exception {

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