try {
// Property1 != Property2
Vector v = new Vector();
v.add(propertySensor1);
v.add(propertySensor2);
Expression firstExpression = new Equal(v,true);
// Property1 == Property3
v.clear();
v.add(propertySensor1);
v.add(propertySensor3);
Expression secondExpression = new Equal(v,true);
// Property1 == StringConstant("test");
v.clear();
v.add(propertySensor1);
v.add(new StringConstant("test"));
Expression thirdExpression = new Equal(v,true);
// StringConstant("test") != StringConstant("testing")
v.clear();
v.add(new StringConstant("test"));
v.add(new StringConstant("testing"));
Expression fourthExpression = new Equal(v,true);
assertFalse(
((Boolean) firstExpression.evaluate()).booleanValue());
assertTrue(
((Boolean) secondExpression.evaluate()).booleanValue());
assertTrue(
((Boolean) thirdExpression.evaluate()).booleanValue());
assertFalse(
((Boolean) fourthExpression.evaluate()).booleanValue());
} catch (SPLException e) {
logger.severe("Received evaluation exception " + e.getMessage());
fail("Received evaluation exception " + e.getMessage());
} catch (Exception e) {