@Test
public void testArgs() {

    RunnerOptions options = RunnerOptions.parseStringArgs(new String[]{});
    assertNull(options.features);
    assertNull(options.tags);
    assertNull(options.name);
    options = RunnerOptions.parseStringArgs(new String[]{"--name", "foo"});
    assertNull(options.features);
    assertNull(options.tags);
    assertEquals("foo", options.name);
    options = RunnerOptions.parseStringArgs(new String[]{"--tags", "~@ignore"});
    assertNull(options.features);
    assertEquals("~@ignore", options.tags.get(0));
    assertNull(options.name);
    options = RunnerOptions.parseStringArgs(new String[]{"--tags", "~@ignore", "foo.feature"});
    assertEquals("foo.feature", options.features.get(0));
    assertEquals("~@ignore", options.tags.get(0));
    assertNull(options.name);
}