@Test
public void throwForSingleFailure() {

    ValidationException input = new ValidationException(NullSchema.INSTANCE, "msg");
    try {
        ValidationException.throwFor(rootSchema, Arrays.asList(input));
        Assert.fail("did not throw exception for single failure");
    } catch (ValidationException actual) {
        Assert.assertSame(input, actual);
    }
}