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