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