CertificateDelegate extends Delegate { public void setAlias(String alias) { this.alias = alias; } 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 testSetAlias() { delegate.setAlias("myTestAlias"); assertTrue("Alias setter is not working correctly", delegate.getAlias().equals("myTestAlias")); }