### Question:
ArgParser { Integer getNumWorkflows() { final Integer numWorkflows = Integer.valueOf(commandLine.getOptionValue(NUM_WORKFLOWS_OPTION, "0")); Preconditions.checkArgument(numWorkflows >= 0, NUM_WORKFLOWS_OPTION + " cannot be negative"); return numWorkflows; }  void setCommandLine(CommandLine commandLine);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testExceptionThrownWithInvalidNumWorkflows() throws Exception { argParser.getNumWorkflows(); }