}
@Test
public void shouldNotAllowTypeThatDoesNotMatchKeyTypeValue() {
// expect
MappedClass mappedClass = new MappedClass(SimpleEntity.class, new Mapper());
MappedField mappedField = mappedClass.getMappedField("name");
assertThat(QueryValidator.isCompatibleForOperator(mappedField, String.class, EQUAL,
new Key<Number>(Integer.class, new ObjectId()),
new ArrayList<ValidationFailure>()), is(false));
}