### Question:
StateOfArkcaseReportGenerator { public JsonNode generateReportAsJSON(LocalDate day) { StateOfArkcase stateOfArkcase = generateReport(day); return mapper.valueToTree(stateOfArkcase); }  JsonNode generateReportAsJSON(LocalDate day); StateOfArkcase generateReport(LocalDate day); void setStateOfArkcaseRegistry(StateOfArkcaseRegistry stateOfArkcaseRegistry); void setMapper(ObjectMapper mapper);  }### Answer:
@Test public void generateReportAsJSON() { assertNotNull(stateOfArkcaseReportGenerator); JsonNode reportJson = stateOfArkcaseReportGenerator.generateReportAsJSON(LocalDate.now()); assertNotNull(reportJson.get("dateGenerated")); JsonNode testModuleUsersJsonNode = reportJson.get("test_module_users"); assertNotNull(testModuleUsersJsonNode); assertEquals(1, testModuleUsersJsonNode.get("addedNewUsers").intValue()); assertEquals(2, testModuleUsersJsonNode.get("removedUsers").intValue()); assertEquals(36, testModuleUsersJsonNode.get("weekOfReport").intValue()); assertEquals(5, testModuleUsersJsonNode.get("numberOfUsers").intValue()); }