CertificateDelegate extends Delegate { public void setPassword(String password) { this.password = password; } CertificateDelegate(); String getKeystore(); void setKeystore(String keystore); String getPassword(); void setPassword(String password); String getAlias(); void setAlias(String alias); String getCertificate(); void setCertificate(String certificate); String getKey(); void setKey(String key); @Override void applyDelegate(Config config);  }
@Test public void testSetPassword() { delegate.setPassword("mypassword"); assertTrue("Password setter is not working correctly", delegate.getPassword().equals("mypassword")); }