try {
Vector v = new Vector();
v.add(new StringConstant(s1));
v.add(new StringConstant(s2));
v.add(new StringConstant(s3));
Expression e1 = new ReplaceSubstring(v,true);
v.clear();
v.add(propertySensor1);
v.add(propertySensor2);
v.add(propertySensor3);
Expression eps1 = new ReplaceSubstring(v,true);
s4 = s4.substring(1, s4.length()-1);
assertTrue(s4.compareTo((String)e1.evaluate()) == 0);
assertTrue(s4.compareTo((String)eps1.evaluate()) == 0);
} catch (SPLException e) {
fail("Received evaluation exception " + e.getMessage());
} catch (Exception e) {
fail("Received expression exception " + e.getMessage());
}