@Test
public void getArrayNotAnArray() {

    assertThatExceptionOfType(NodeProcessingException.class).
            isThrownBy(() -> parentWithChildObject(pair("A", "1")).getArray("child"));
    assertThatExceptionOfType(NodeProcessingException.class).
            isThrownBy(() -> stringNode("A").getArray("child"));
}