### Question:
IMAReport extends Report { public final void setIndex(final int index) { if (index < 0) { final String msg = "index cannot be less than zero"; LOGGER.warn(msg); throw new IllegalArgumentException(msg); } this.index = index; } IMAReport(); @Override final String getReportType(); final String getBootcycleId(); final void setBootcycleId(final String bootcycleId); final int getIndex(); final void setIndex(final int index); @JsonIgnore Set<IMAMeasurementRecord> getRecords(); final void addRecord(final IMAMeasurementRecord record); final boolean removeRecord(final IMAMeasurementRecord record); final boolean isFullReport(); int getRecordCount();  }### Answer:
@Test(expectedExceptions = IllegalArgumentException.class) public final void setInvalidIndex() { final IMAReport report = new IMAReport(); final int invalidIndex = -1; report.setIndex(invalidIndex); }