286287288289290291292293294
String[] argv = { }; new JCommander(args, argv); } public void privateArgs() { ArgsPrivate args = new ArgsPrivate(); new JCommander(args, "-verbose", "3"); Assert.assertEquals(args.getVerbose().intValue(), 3); }