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