UnaryExpression extends Expression { @Override public String toString() { return getPropertyName() + " " + getOperator(); } UnaryExpression(Operator operator, String propertyName); @Override String toString();  }
@Test public void testToString() { String expected = propertyName + " " + operator; assertEquals(expected, e.toString()); }