XpathProduceDestination implements MessageDrivenDestination { public void setXpath(String s) { xpath = Args.notNull(s, "xpath"); } XpathProduceDestination();  XpathProduceDestination(String xpath);  XpathProduceDestination(String xpath, String defaultDest); @Override boolean equals(Object obj); @Override int hashCode(); @Override String getDestination(AdaptrisMessage msg); String getXpath(); void setXpath(String s); String getDefaultDestination(); void setDefaultDestination(String s); KeyValuePairSet getNamespaceContext(); void setNamespaceContext(KeyValuePairSet kvps); DocumentBuilderFactoryBuilder getXmlDocumentFactoryConfig(); void setXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xml);  }
@Test public void testSetXpath() { XpathProduceDestination dest = new XpathProduceDestination(); try { dest.setXpath(null); fail(); } catch (IllegalArgumentException e) { ; } dest.setXpath(""); assertEquals("", dest.getXpath()); dest.setXpath(DEST_XPATH); assertEquals(DEST_XPATH, dest.getXpath()); }