NoConversionTypeConverter implements TypeConverter<Object, Object> { @Override public boolean canConvert(Type realToType, Type realDomainType) { return realToType.equals(realDomainType); }  @Override boolean canConvert(Type realToType, Type realDomainType); @Override Object convert(Object object, SyntheticField domainField, Object domainObject, String... tags); @Override Object reverse(Object object, SyntheticField toField, Object toObject, String... tags);  }
@Test public void testCanConvert() throws Exception { assertThat(typeConverter.canConvert(Boolean.class, Boolean.class)).isTrue(); assertThat(typeConverter.canConvert(Boolean.class, Integer.class)).isFalse(); }