new Criteria("field_1").near(new Point(48.303056, 14.290556), new Distance(-1));
}
@Test
public void testWithin() {
Point location = new Point(48.303056, 14.290556);
Criteria criteria = new Criteria("field_1").within(location, new Distance(5));
Predicate entry = getPredicateByPosition(criteria.getPredicates(), 0);
Assert.assertEquals(OperationKey.WITHIN.getKey(), entry.getKey());
Assert.assertEquals(location, ((Object[]) entry.getValue())[0]);
Assert.assertEquals(5, ((Distance) ((Object[]) entry.getValue())[1]).getValue(), 0);