}
@Test(expected = MappingException.class)
public void testFloatToIntegerConverter_overflow() {
MapperFactory factory = MappingUtil.getMapperFactory();
factory.getConverterFactory().registerConverter(new FloatToIntegerConverter(false));
MapperFacade mapper = factory.getMapperFacade();
Float value = ((float) Integer.MAX_VALUE) * 1.1f;
Integer result = mapper.map(value, Integer.class);
Assert.assertEquals(value.floatValue(), result.floatValue());