### Question:
OptionBuilder { public Option create(final String opt, final String desc) { return create(opt, null, desc); }  Option create(final String opt, final String desc); Option create(final String opt, final String longOpt, final String desc); void reset(); public int args; public char valSeparator; public boolean required; public boolean optionalArg; public Class<?> type; }### Answer:
@Test public void testCreate() throws Exception { Option option = this.optionBuilder.create("opt", "desc"); assertEquals(option.getArgs(), 0); assertEquals(String.class, option.getType()); assertEquals(option.getOpt(), "opt"); assertEquals(option.getDescription(), "desc"); assertNull(option.getLongOpt()); assertFalse(option.isRequired()); assertEquals(option.getValueSeparator(), 0); }
@Test public void testCreate1() throws Exception { Option option = this.optionBuilder.create("opt", "longOpt", "desc"); assertEquals(option.getLongOpt(), "longOpt"); }