GeneralDelegate extends Delegate { public void setHelp(boolean help) { this.help = help; } 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 testSetHelp() { assertFalse(delegate.isHelp()); delegate.setHelp(true); assertTrue(delegate.isHelp()); }