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