@Test
public void getAsIntNotAnInt() {

    assertThatExceptionOfType(NodeProcessingException.class).
            isThrownBy(() -> parentWithChildString("A").getAsInt("child"));
    assertThatExceptionOfType(NodeProcessingException.class).
            isThrownBy(() -> stringNode("A").getAsInt("child"));
}