### Question:
ReportingContext { public static void setReportWriter(ReportWriter reportWriter) { Assert.notNull("ReportWriter must not be null.", reportWriter); getInstance().reportWriter = reportWriter; } private  ReportingContext(); static ReportWriter getReportWriter(); static void setReportWriter(ReportWriter reportWriter);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void setReportWriterDoesNotAcceptNull() throws Exception { ReportingContext.setReportWriter(null); }