XpathProduceDestination implements MessageDrivenDestination { @Override public int hashCode() { return new HashCodeBuilder().append(getXpath()).append(getDefaultDestination()).append(getXmlDocumentFactoryConfig()) .append(getNamespaceContext()) .toHashCode(); } 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 testHashCode() { XpathProduceDestination dest = new XpathProduceDestination(DEST_XPATH, DEFAULT_DEST); XpathProduceDestination d2 = new XpathProduceDestination(DEST_XPATH, DEFAULT_DEST); assertEquals(new XpathProduceDestination().hashCode(), new XpathProduceDestination().hashCode()); assertEquals(dest.hashCode(), d2.hashCode()); }