### Question:
IntegrityReport extends Report { public final void addReport(final Report report) { if (report == null) { LOGGER.error("report cannot be null"); throw new NullPointerException("report"); } if (reports.add(report)) { LOGGER.debug("Report {} successfully added", report); } else { LOGGER.debug("Report {} already exists in the IntegrityReport", report); } } IntegrityReport(); final void addReport(final Report report); final boolean contains(Class<? extends Report> reportType); final Set<Report> getReports(); final void removeReport(final Report report); final T extractReport(final Class<T> reportType); String getDeviceName(); @Override final String getReportType();  }### Answer:
@Test public final void addReport() { TestReport report = new TestReport(); IntegrityReport integrityReport = new IntegrityReport(); integrityReport.addReport(report); Set<Report> reportSet = integrityReport.getReports(); Assert.assertNotNull(reportSet); Assert.assertTrue(reportSet.contains(report)); Assert.assertEquals(reportSet.size(), 1); }