XpathMetadataService extends MetadataServiceImpl { public void setNamespaceContext(KeyValuePairSet namespaceContext) { this.namespaceContext = namespaceContext; } XpathMetadataService(); @Override void doService(AdaptrisMessage msg); KeyValuePairSet getNamespaceContext(); void setNamespaceContext(KeyValuePairSet namespaceContext); List<XpathQuery> getXpathQueries(); void setXpathQueries(List<XpathQuery> xql); void addXpathQuery(XpathQuery query); DocumentBuilderFactoryBuilder getXmlDocumentFactoryConfig(); void setXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xml);  }
@Test public void testSetNamespaceContext() { XpathMetadataService obj = new XpathMetadataService(); assertNull(obj.getNamespaceContext()); KeyValuePairSet kvps = new KeyValuePairSet(); kvps.add(new KeyValuePair("hello", "world")); obj.setNamespaceContext(kvps); assertEquals(kvps, obj.getNamespaceContext()); obj.setNamespaceContext(null); assertNull(obj.getNamespaceContext()); }