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