@Test
public void testCanProcessWithAttribute() {
String expected = "/response/documents";
XmlAttribute attribute = XmlAttribute.from("numberFound=12345");
AttributeProvider provider = testProvider(expected, attribute);
String childElem = "/response/documents/document";
AttributeProvider failProvider = testProvider(expected, EMPTY);
XPathRequest req = new XPathRequest("/response/documents[@numberFound]/*");
assertTrue(req.canProcess(expected, attribute, failProvider));
assertTrue(req.canProcess(expected, EMPTY, provider));