public void testIds() throws Exception
{
log.trace("parse(a + b * c / d = e)");
Operator result = (Operator) parser.parse("a + b * c / d = e", identifierMap);
// 4 + 2 * 3 / 2 = 7
Identifier a = (Identifier) identifierMap.get("a");
a.setValue(new Long(4));
Identifier b = (Identifier) identifierMap.get("b");
b.setValue(new Long(2));
Identifier c = (Identifier) identifierMap.get("c");
c.setValue(new Long(3));
Identifier d = (Identifier) identifierMap.get("d");
d.setValue(new Long(2));
Identifier e = (Identifier) identifierMap.get("e");
e.setValue(new Long(7));
log.trace("result -> "+result);
Boolean bool = (Boolean) result.apply();
assertTrue("is true", bool.booleanValue());
}