@Test
public void testFromJson() {

    SimpleReport emptyReport = SimpleReport.fromJson(obj().get());
    assertEquals("empty report name is empty", "", emptyReport.getCheckName());
    assertTrue("empty report violations are empty", emptyReport.getViolations().isEmpty());
    SimpleViolation violation = new SimpleViolation(Severity.MINOR, "minor");
    SimpleReport moreReport = SimpleReport.fromJson(obj()
            .key(ReportMapper.keys().checkName(), "more")
            .key(ReportMapper.keys().violations(), arr().val(violation))
            .get());
    assertEquals("more report name is more", "more", moreReport.getCheckName());
    assertEquals("more report violations are ",
            Collections.singletonList(violation), moreReport.getViolations());
}