}
@Test(expected = MappingException.class)
public void testDoubleToIntegerConverter_overflow() {
MapperFactory factory = MappingUtil.getMapperFactory();
factory.getConverterFactory().registerConverter(new DoubleToIntegerConverter(false));
MapperFacade mapper = factory.getMapperFacade();
Double value = (double) Integer.MAX_VALUE + 1;
Integer result = mapper.map(value, Integer.class);
Assert.assertEquals(value.doubleValue(), result.doubleValue());