MaxFragmentLengthDelegate extends Delegate { public Integer getMaxFragmentLength() { return maxFragmentLength; } MaxFragmentLengthDelegate(); Integer getMaxFragmentLength(); void setMaxFragmentLength(Integer maxFragmentLength); @Override void applyDelegate(Config config);  }
@Test public void testGetMaxFragmentLength() { args = new String[2]; args[0] = "-max_fragment_length"; args[1] = "4"; assertTrue(delegate.getMaxFragmentLength() == null); jcommander.parse(args); assertTrue(delegate.getMaxFragmentLength() == 4); }