new JCommander(args, "-verbose", "3");
Assert.assertEquals(args.getVerbose().intValue(), 3);
}
public void converterArgs() {
ArgsConverter args = new ArgsConverter();
String fileName = "a";
new JCommander(args, "-file", "/tmp/" + fileName,
"-listStrings", "Tuesday,Thursday",
"-listInts", "-1,8",
"-listBigDecimals", "-11.52,100.12");