@Test
public void getArrayValuesNotAnArray() {

    assertThatExceptionOfType(NodeProcessingException.class).
            isThrownBy(() -> emptyNode().getArrayValues());
    assertThatExceptionOfType(NodeProcessingException.class).
            isThrownBy(() -> objectNode(pair("A", "1"), pair("B", "2")).getArrayValues());
    assertThatExceptionOfType(NodeProcessingException.class).
            isThrownBy(() -> stringNode("A").getArrayValues());
}