ResourceExpression implements Map { @Override public boolean isEmpty() { return evaluate() == null; } ResourceExpression(String key, ResourceExpression parent);  ResourceExpression(String key, ResourceExpression parent, ResourceExpressionType type);  ResourceExpression(String key, ResourceExpression parent, ResourceExpressionType type, Object... args); Object call(Object key, Object[] arguments); @Override void clear(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Set entrySet(); Object evaluate(); String evaluateAsString(); @Override Object get(Object expr); Object[] getArguments(); String getKey(); ResourceExpression getParent(); @Override boolean isEmpty(); @Override Set keySet(); @Override Object put(Object key, Object value); @Override void putAll(Map m); @Override Object remove(Object key); void setArguments(Object[] arguments); @Override int size(); @Override String toString(); @Override Collection values(); ResourceExpressionType getType(); void setType(ResourceExpressionType type); static final ResourceELEvaluator DEFAULT_EVALUATOR; }
@Test public void testELIsEmpty() { ResBeanExpression bean = new ResBeanExpression(); ResourceExpression expr1 = eval(bean, "js.local.js.sample.sample_js"); Assert.assertFalse(expr1.isEmpty()); }