AbstractHibernateQueryTranslator extends
        AbstractQueryTranslator<Q, O, P> implements QueryTranslator<Q, O, P> { @Override public <N extends Number & Comparable<N>> Q within(String fieldName, Point<N> center, Number distance) { throw new IllegalStateException( "Cannot perform geometric queries using one field"); } AbstractHibernateQueryTranslator(Class<Q> queryClass,
            Class<O> orderClass, HibernatePropertyResolver propertyResolver,
            BoxMaker boxMaker,
            ContainsExpressionHandler<Q> containsExpressionHandler); BoxMaker getBoxMaker(); ContainsExpressionHandler<Q> getContainsExpressionHandler(); @Override Q within(String fieldName,
            Point<N> center, Number distance); abstract Q within(
            String xFieldName, String yFieldName, Box<N> box); @Override Q contains(String fieldName, Object[] values);  }
@Test(expected = IllegalStateException.class) public void within_singleFieldName_IllegalStateException() { translator.within("field", new Point<Integer>(1, 1), 1); }