@Test
public void testConfWithMultipleOpts() throws Exception {

  String[] args = new String[2];
  args[0] = "--conf=foo";
  args[1] = "--conf=bar";
  GenericOptionsParser g = new GenericOptionsParser(args);
  assertEquals("1st conf param is incorrect",
    "foo", g.getCommandLine().getOptionValues("conf")[0]);
  assertEquals("2st conf param is incorrect",
    "bar", g.getCommandLine().getOptionValues("conf")[1]);
}