@Test
public void violationCountWithNestedCauses() {

    ValidationException subject =
            subjectWithCauses(
                    subjectWithCauses(),
                    subjectWithCauses(subjectWithCauses(),
                            subjectWithCauses(subjectWithCauses(), subjectWithCauses())));
    assertEquals(4, subject.getViolationCount());
}