@Test public void testNormalOperationPreserveKey() throws Exception { AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(); CloneMessageServiceList service = createServiceList(); RegexMetadataFilter rmf = new RegexMetadataFilter(); rmf.addIncludePattern(KEY1); service.setOverrideMetadataFilter(rmf); try { LifecycleHelper.initAndStart(service); service.doService(msg); assertNotNull(msg.getMetadataValue(KEY1)); assertEquals(VAL1, msg.getMetadataValue(KEY1)); } finally { LifecycleHelper.stopAndClose(service); } }
public void setOverrideMetadataFilter(MetadataFilter mf) { overrideMetadataFilter = mf; }
CloneMessageServiceList extends ServiceListBase { public void setOverrideMetadataFilter(MetadataFilter mf) { overrideMetadataFilter = mf; } }
CloneMessageServiceList extends ServiceListBase { public void setOverrideMetadataFilter(MetadataFilter mf) { overrideMetadataFilter = mf; } CloneMessageServiceList();  CloneMessageServiceList(Collection<Service> list);  CloneMessageServiceList(Service... list); }
CloneMessageServiceList extends ServiceListBase { public void setOverrideMetadataFilter(MetadataFilter mf) { overrideMetadataFilter = mf; } CloneMessageServiceList();  CloneMessageServiceList(Collection<Service> list);  CloneMessageServiceList(Service... list); MetadataFilter getOverrideMetadataFilter(); void setOverrideMetadataFilter(MetadataFilter mf); }
CloneMessageServiceList extends ServiceListBase { public void setOverrideMetadataFilter(MetadataFilter mf) { overrideMetadataFilter = mf; } CloneMessageServiceList();  CloneMessageServiceList(Collection<Service> list);  CloneMessageServiceList(Service... list); MetadataFilter getOverrideMetadataFilter(); void setOverrideMetadataFilter(MetadataFilter mf);  }