@Test
public void between() {

    RangeExpression e = Restrictions.between(propertyName, from, to);
    assertEquals(Operator.BETWEEN, e.getOperator());
    assertEquals(propertyName, e.getPropertyName());
    assertEquals(from, e.getFrom());
    assertEquals(to, e.getTo());
}