### Question:
PerfRuntimeOptions { public PerfRuntimeOptions addCucumberOptions(List<String> args) { for (String arg : args) { List<String> ca = Shellwords.parse(arg); int p = 0; boolean ispretty = false; for (int i = 0; i < ca.size(); i++) { if (ca.get(i).contentEquals("-p")) { p = i; } if (ca.get(i).contains("pretty")) { ca.remove(i); i--; ispretty = true; } try { if (ispretty && (ca.get(i).contentEquals("-p") || !isCucumberPlugin(ca.get(i)))) { ispretty = false; ca.remove(p); } } catch (Exception e) { } } cucumberOptions.addAll(ca); } return this; } PerfRuntimeOptions();  PerfRuntimeOptions(List<String> argv); List<String> getPluginsNames(); boolean isDryRun(); boolean isMonochrome(); boolean isStrict(); boolean isFailFast(); List<String> getPlanPaths(); List<Pattern> getNameFilters(); List<String> getTagFilters(); List<String> getCucumberOptions(); PerfRuntimeOptions addPlanPaths(List<String> planPaths); PerfRuntimeOptions addNameFilters(List<String> nameFilters); PerfRuntimeOptions addTagFilters(List<String> tagFilters); PerfRuntimeOptions addPlugins(List<String> plugins); void disableDisplay(); PerfRuntimeOptions addCucumberOptions(List<String> args); void setDryRun(boolean dryRun); void setStrict(boolean strict); void setMonochrome(boolean monochrome); void setFailFast(boolean failFast); static final String VERSION; static final String USAGE_RESOURCE; }### Answer:
@Test public void testAddCucumberOptions() { PerfRuntimeOptions pro = new PerfRuntimeOptions(); pro.addCucumberOptions(Arrays.asList(new String[] {"-p pretty", "-g steps","src/test/java/resources"})); assertEquals("-g",pro.getCucumberOptions().get(0)); }