@Test
public void testChildForArrayFailure_NotFound() {

    LoadingState subject = singleElemArrayState();
    try {
        subject.childFor(1);
        fail("did not throw exception");
    } catch (SchemaException e) {
        SchemaException expected = new SchemaException("#", "array index [1] is out of bounds");
        assertEquals(expected, e);
    }
}