@Test
public void isNotEmpty() {

    UnaryExpression e = Restrictions.isNotEmpty(propertyName);
    assertEquals(Operator.NOT_EMPTY, e.getOperator());
    assertEquals(propertyName, e.getPropertyName());
}