@Test
public void getObjectNotAnObject() {

    assertThatExceptionOfType(NodeProcessingException.class).
            isThrownBy(() -> parentWithChildArray("A", "B", "C").getObject("child"));
    assertThatExceptionOfType(NodeProcessingException.class).
            isThrownBy(() -> stringNode("A").getObject("child"));
}