FormattedMetadataDestination implements MessageDrivenDestination { public void addMetadataKey(String s) { metadataKeys.add(s); } FormattedMetadataDestination(); void addMetadataKey(String s); List<String> getMetadataKeys(); ElementFormatter getElementFormatter(); void setElementFormatter(ElementFormatter elementFormatter); void setMetadataKeys(List<String> l); void addObjectMetadataKey(String s); List<String> getObjectMetadataKeys(); void setObjectMetadataKeys(List<String> l); @Override String getDestination(AdaptrisMessage msg); String getDestinationTemplate(); void setDestinationTemplate(String s);  }
@Test public void testAddMetadataKey() { FormattedMetadataDestination dest = new FormattedMetadataDestination(); dest.addMetadataKey("key1"); dest.addMetadataKey("key2"); dest.addMetadataKey("key3"); assertTrue(dest.getMetadataKeys().contains("key3")); }