OptionToolkit { public GroupBuilder newGroupBuilder() { return new GroupBuilderImpl(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 testBuildGroup() throws Exception { Group group = optionToolkit.newGroupBuilder().withId(OPTION_ID).withMaximum(OPTION_MAXIMUM) .withMinimum(OPTION_MINIMUM).build(); assertNotNull(group); assertEquals(group.getId(), OPTION_ID); assertEquals(group.getMinimum(), OPTION_MINIMUM); assertEquals(group.getMaximum(), OPTION_MAXIMUM); }