/**
  * Test method for {@link
  * net.hyperadapt.pxweave.interpreter.test.OperationInterpreter#interpreteDelete(org.w3c.dom.NodeList)}
  * .
  *
  * @throws XMLWeaverException
  */
 @Test
 public void testInterpreteDelete() throws XMLWeaverException {
   NodeList nodeList = xPathEvaluator.evaluateXPath("//books:book/attribute::inStock", document);
   oInterpreter.interpreteDelete(nodeList);
   assertTrue(
       "attribute was removed",
       (xPathEvaluator.evaluateXPath("//books:book/attribute::inStock", document)).getLength()
           == 0);
   nodeList = xPathEvaluator.evaluateXPath("//books:book/books:title/text()", document);
   oInterpreter.interpreteDelete(nodeList);
   assertTrue(
       "textNodes are removed",
       (xPathEvaluator.evaluateXPath("//books:book/books:title/text()", document)).getLength()
           == 0);
   nodeList = xPathEvaluator.evaluateXPath("//books:book[1]/books:title", document);
   oInterpreter.interpreteDelete(nodeList);
   assertTrue(
       "no nodes of type \"title\" should be left in the first book",
       (xPathEvaluator.evaluateXPath("//books:book[1]/books:title", document)).getLength() == 0);
   nodeList = xPathEvaluator.evaluateXPath("//books:book", document);
   oInterpreter.interpreteDelete(nodeList);
   assertTrue(
       "no books left", (xPathEvaluator.evaluateXPath("//books:book", document)).getLength() == 0);
 }