@Test
public void shouldAllowGeoWithinOperatorWithAllAppropriateTrimmings() {
// expect
MappedClass mappedClass = new MappedClass(GeoEntity.class, new Mapper());
MappedField mappedField = mappedClass.getMappedField("array");
assertThat(QueryValidator.isCompatibleForOperator(mappedField, List.class, GEO_WITHIN, new BasicDBObject("$box", 1),
new ArrayList<ValidationFailure>()), is(true));
}