@Test
public void within() {

    String xprop = "property.x";
    String yprop = "property.y";
    String expected = "(" + 
            join(xprop, HibernateOperator.BETWEEN, box.getA().getX(), HibernateOperator.AND, box.getB().getX()) +
            ") " + HibernateOperator.AND + " (" + 
            join(yprop, HibernateOperator.BETWEEN, box.getA().getY(), HibernateOperator.AND, box.getB().getY()) +
    ")";
    assertEquals(expected, translator.within(xprop, yprop, box));
}