OptionToolkit { public ArgumentBuilder newArgumentBuilder() { return new ArgumentBuilderImpl(optionFormat); } protected  OptionToolkit(OptionFormat optionFormat); static OptionToolkit getInstance(); static OptionToolkit getInstance(OptionFormat optionFormat); OptionFormat getOptionFormat(); ArgumentBuilder newArgumentBuilder(); BasicOptionBuilder newBasicOptionBuilder(); GroupBuilder newGroupBuilder(); RegexOptionBuilder newRegexOptionBuilder();  }
@Test public void testBuildArgument() throws Exception { Argument argument = optionToolkit.newArgumentBuilder().withId(OPTION_ID).withMinimum(OPTION_MINIMUM) .withMaximum(OPTION_MAXIMUM).build(); assertNotNull(argument); assertEquals(argument.getId(), OPTION_ID); assertEquals(argument.getMinimum(), OPTION_MINIMUM); assertEquals(argument.getMaximum(), OPTION_MAXIMUM); }