### Question:
CucumberMojo extends AbstractJRubyMojo { public CucumberTask cucumber(String args) throws MojoExecutionException { CucumberTask cucumber = new CucumberTask(); cucumber.setProject(getProject()); for (String jvmArg : getJvmArgs()) { if (jvmArg != null) { Commandline.Argument arg = cucumber.createJvmarg(); arg.setValue(jvmArg); } } cucumber.setArgs(args); return cucumber; }  void execute(); CucumberTask cucumber(String args);  }### Answer:
@Test public void shouldIgnoreNullJvmArg() throws MojoExecutionException { mojo.jvmArgs = Arrays.asList("-Dfoo=bar", null, ""); assertEquals(Arrays.asList("-Dfoo=bar", ""), Arrays.asList(mojo.cucumber("").getCommandLine().getVmCommand().getArguments())); }