### Question:
JsonReporter extends AbstractFileReporter implements CheckableReporter { @Override public boolean canReport(OutputFormat format) { return OutputFormat.JSON.equals(format); } JsonReporter(FileWriter fileWriter, DirectoryCreator directoryCreator, JsonConverter jsonConverter); @Override boolean canReport(OutputFormat format);  }### Answer:
@Test public void testCanReportShouldReturnTrueIfOutputFormatIsJson() { boolean result = underTest.canReport(OutputFormat.JSON); assertThat(result).isTrue(); }
@Test public void testCanReportShouldReturnFalseIfOutputFormatIsHtml() { boolean result = underTest.canReport(OutputFormat.HTML); assertThat(result).isFalse(); }