TimeoutDelegate extends Delegate { public Integer getTimeout() { return timeout; } TimeoutDelegate(); Integer getTimeout(); void setTimeout(int timeout); @Override void applyDelegate(Config config);  }
@Test public void testGetTimeout() { args = new String[2]; args[0] = "-timeout"; args[1] = "123"; assertTrue(delegate.getTimeout() == null); jcommander.parse(args); assertTrue(delegate.getTimeout() == 123); }