try {
Vector v = new Vector();
v.add(new StringConstant(s1));
v.add(new StringConstant(s2));
v.add(new IntegerConstant(n));
Expression e1 = new Word(v,true);
v.clear();
v.add(propertySensor1);
v.add(propertySensor2);
v.add(propertySensor3);
Expression eps1 = new Word(v,true);
assertTrue(
(e1.evaluate()).equals(
"ThisIsADogThisIsAPenThisIsATelevisionSet"));
assertTrue((eps1.evaluate()).equals("ThisIsADog"));
} catch (SPLException e) {
fail("Received evaluation exception " + e.getMessage());
} catch (Exception e) {
fail("Received expression exception " + e.getMessage());
}