@Test
public void eq() {

    EqualityExpression e = Restrictions.eq(propertyName, value);
    assertEquals(Operator.EQUAL, e.getOperator());
    assertEquals(propertyName, e.getPropertyName());
    assertEquals(value, e.getValue());
}