ServerDelegate extends Delegate { public void setPort(int port) { this.port = port; } ServerDelegate(); Integer getPort(); void setPort(int port); @Override void applyDelegate(Config config);  }
@Test public void testSetPort() { assertTrue(delegate.getPort() == null); delegate.setPort(1234); assertTrue(delegate.getPort() == 1234); }