@Test
public void ne() {

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