@Test
public void testToString() {

    Option list = Option.createList("list");
    assertEquals("INT_LIST", list.toString());
    assertEquals("", list.getValue());
    assertArrayEquals(new String[] {}, list.getValues());
    list.setValue("a b c");
    assertEquals("INT_LIST:a b c", list.toString());
    assertArrayEquals(new String[] { "a", "b", "c" }, list.getValues());
    Option flag = Option.createFlag("flag", "flag");
    assertEquals("flag", flag.toString());
    assertEquals("", flag.getValue());
    assertArrayEquals(new String[] {}, flag.getValues());
    flag.setValue("a");
    assertEquals("flag:a", flag.toString());
    assertArrayEquals(new String[] { "a" }, flag.getValues());
    Option option = Option.createOption("option", "option");
    assertEquals("option", option.toString());
    assertEquals("", option.getValue());
    assertArrayEquals(new String[] {}, option.getValues());
    option.setValue("a");
    assertEquals("option:a", option.toString());
    assertArrayEquals(new String[] { "a" }, option.getValues());
}