ServerDelegate extends Delegate { public Integer getPort() { return port; } ServerDelegate(); Integer getPort(); void setPort(int port); @Override void applyDelegate(Config config);  }
@Test public void testGetPort() { args = new String[2]; args[0] = "-port"; args[1] = "1234"; assertTrue(delegate.getPort() == null); jcommander.parse(args); assertTrue(delegate.getPort() == 1234); }