XpathProduceDestination implements MessageDrivenDestination { public void setNamespaceContext(KeyValuePairSet kvps) { this.namespaceContext = kvps; } 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 testSetNamespaceContext() { XpathProduceDestination obj = new XpathProduceDestination(); assertNull(obj.getNamespaceContext()); KeyValuePairSet kvps = createContextEntries(); obj.setNamespaceContext(kvps); assertEquals(kvps, obj.getNamespaceContext()); obj.setNamespaceContext(null); assertNull(obj.getNamespaceContext()); }