CopyMetadataService extends MetadataServiceImpl { public void setMetadataKeys(KeyValuePairCollection m) { this.metadataKeys = Args.notNull(m, "metadataKeys"); } CopyMetadataService(); @Override void doService(AdaptrisMessage msg); KeyValuePairCollection getMetadataKeys(); void setMetadataKeys(KeyValuePairCollection m);  }
@Test public void testSetter() throws Exception { CopyMetadataService service = createService(); try { service.setMetadataKeys(null); fail("Success with metadata keys null"); } catch (IllegalArgumentException expected) { ; } }