}
@Test(expected = MappingException.class)
public void testBigIntegerToIntegerConverter_Overflow() {
MapperFactory factory = MappingUtil.getMapperFactory();
factory.getConverterFactory().registerConverter(new BigIntegerToIntegerConverter(false));
MapperFacade mapper = factory.getMapperFacade();
BigInteger bi = new BigInteger("1" + Long.MAX_VALUE);
Integer i = mapper.map(bi, Integer.class);
Assert.assertEquals(bi.longValue(), i.longValue());