### Question:
CommandLine implements Serializable { public Option[] getOptions() { Collection<Option> processed = options; Option[] optionsArray = new Option[processed.size()]; return processed.toArray(optionsArray); } protected  CommandLine(); boolean hasOption(String opt); boolean hasOption(char opt); @Deprecated Object getOptionObject(String opt); Object getParsedOptionValue(String opt); Object getOptionObject(char opt); String getOptionValue(String opt); String getOptionValue(char opt); String[] getOptionValues(String opt); String[] getOptionValues(char opt); String getOptionValue(String opt, String defaultValue); String getOptionValue(char opt, String defaultValue); Properties getOptionProperties(String opt); String[] getArgs(); List<String> getArgList(); Iterator<Option> iterator(); Option[] getOptions();  }### Answer:
@Test public void testGetOptions() { CommandLine cmd = new CommandLine(); assertNotNull(cmd.getOptions()); assertEquals(0, cmd.getOptions().length); cmd.addOption(new Option("a", null)); cmd.addOption(new Option("b", null)); cmd.addOption(new Option("c", null)); assertEquals(3, cmd.getOptions().length); }