MetadataExistsBranchingService extends MetadataBranchingServiceImp { public void setMetadataExistsServiceId(String s) { this.metadataExistsServiceId = Args.notBlank(s, "metadataExistsServiceId"); }  @Override void doService(AdaptrisMessage msg); String getMetadataExistsServiceId(); void setMetadataExistsServiceId(String s);  }
@Test public void testSetters() throws Exception { MetadataExistsBranchingService service = new MetadataExistsBranchingService(); try { service.addMetadataKey(""); fail(); } catch (IllegalArgumentException expected) { } try { service.addMetadataKey(null); fail(); } catch (IllegalArgumentException expected) { } try { service.setMetadataExistsServiceId(null); fail(); } catch (IllegalArgumentException expected) { } try { service.setMetadataExistsServiceId(""); fail(); } catch (IllegalArgumentException expected) { } }