@Test
public void maxItems() {

    ArraySchema subject = buildWithLocation(ArraySchema.builder().maxItems(0));
    TestSupport.failureOf(subject)
            .subject(subject)
            .expectedPointer("#")
            .expectedKeyword("maxItems")
            .expectedMessageFragment("expected maximum item count: 0, found: 1")
            .input(ARRAYS.get("onlyOneItem"))
            .expect();
}