AddMetadataService extends MetadataServiceImpl { public Set<MetadataElement> getMetadataElements() { return metadataElements; } AddMetadataService();  AddMetadataService(Collection<MetadataElement> elements);  AddMetadataService(MetadataElement... elements); @Override void doService(AdaptrisMessage msg); Set<MetadataElement> getMetadataElements(); void setMetadataElements(Set<MetadataElement> s); void addMetadataElement(MetadataElement element); void addMetadataElement(String key, String value); Boolean getOverwrite(); void setOverwrite(Boolean b);  }
@Test public void testGetMetadataElements() { Set metadata = new HashSet(); metadata.add(m1); metadata.add(m2); assertTrue(service.getMetadataElements().equals(metadata)); }