CommonCLIBuilder { public static Options getCommonOptions() { Option opt = Option.builder(CONFIG_OPT) .required() .argName("chatalytics config file") .hasArg() .desc("Type the name of the config in the classpath") .build(); Options options = new Options(); options.addOption(opt); return options; }  static CommandLine parseOptions(Class<?> clazz, String[] args, Options options); static Options getCommonOptions(); static String getConfigOption(CommandLine cli); static final String CONFIG_OPT; }
@Test public void testGetCommonOptions() { Options options = CommonCLIBuilder.getCommonOptions(); assertNotNull(options); assertEquals(1, options.getOptions().size()); }