GeneralDelegate extends Delegate { public void setKeylogfile(String keylogfile) { this.keylogfile = keylogfile; } GeneralDelegate(); boolean isHelp(); void setHelp(boolean help); boolean isDebug(); void setDebug(boolean debug); boolean isQuiet(); void setQuiet(boolean quiet); String getKeylogfile(); void setKeylogfile(String keylogfile); @Override void applyDelegate(Config config);  }
@Test public void testSetKeylogfile() { assertNull(delegate.getKeylogfile()); delegate.setKeylogfile("abc"); assertEquals("abc", delegate.getKeylogfile()); }