@Test
public void isNodeEmpty() {

    ObjectNode objectNode = new ObjectNode(factory);
    assertTrue(expressionEvaluatorLocal.isNodeEmpty(objectNode));
    objectNode.set("empty array", new ArrayNode(factory));
    assertTrue(expressionEvaluatorLocal.isNodeEmpty(objectNode));
    objectNode.set("key", new TextNode(VALUE));
    assertFalse(expressionEvaluatorLocal.isNodeEmpty(objectNode));
    ArrayNode arrayNode = new ArrayNode(factory);
    assertTrue(expressionEvaluatorLocal.isNodeEmpty(arrayNode));
    arrayNode.add(new TextNode(VALUE));
    assertFalse(expressionEvaluatorLocal.isNodeEmpty(arrayNode));
    assertTrue(expressionEvaluatorLocal.isNodeEmpty(new TextNode("")));
    assertTrue(expressionEvaluatorLocal.isNodeEmpty(new TextNode(null)));
    assertFalse(expressionEvaluatorLocal.isNodeEmpty(new TextNode(VALUE)));
}