JdbcXPathParameter extends NullableParameter { public void setNamespaceContext(KeyValuePairSet kvps) { this.namespaceContext = kvps; }  @Override Object applyInputParam(AdaptrisMessage msg); @Override void applyOutputParam(Object dbValue, AdaptrisMessage msg); String getXpath(); void setXpath(String xpath); KeyValuePairSet getNamespaceContext(); void setNamespaceContext(KeyValuePairSet kvps); DocumentBuilderFactoryBuilder getXmlDocumentFactoryConfig(); void setXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xml);  }
@Test public void testSetNamespaceContext() { JdbcXPathParameter parameter = new JdbcXPathParameter(); assertNull(parameter.getNamespaceContext()); KeyValuePairSet kvps = new KeyValuePairSet(); kvps.add(new KeyValuePair("hello", "world")); parameter.setNamespaceContext(kvps); assertEquals(kvps, parameter.getNamespaceContext()); parameter.setNamespaceContext(null); assertNull(parameter.getNamespaceContext()); }