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