@Override
  public void configure(TestElement el) {
    super.configure(el);
    XPathAssertion assertion = (XPathAssertion) el;
    xpath.setXPath(assertion.getXPathString());
    xpath.setNegated(assertion.isNegated());

    xml.configure(assertion);
  }
 /**
  * Modifies a given TestElement to mirror the data in the gui components.
  *
  * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
  */
 public void modifyTestElement(TestElement el) {
   super.configureTestElement(el);
   if (el instanceof XPathAssertion) {
     XPathAssertion assertion = (XPathAssertion) el;
     assertion.setNegated(xpath.isNegated());
     assertion.setXPathString(xpath.getXPath());
     xml.modifyTestElement(assertion);
   }
 }
  /** Implements JMeterGUIComponent.clearGui */
  @Override
  public void clearGui() {
    super.clearGui();

    xpath.setXPath("/"); // $NON-NLS-1$
    xpath.setNegated(false);

    xml.setDefaultValues();
  }