public class NumericConvertersTestCase {
@Test
public void testBigDecimalToDoubleConverter() {
MapperFactory factory = MappingUtil.getMapperFactory();
factory.getConverterFactory().registerConverter(new BigDecimalToDoubleConverter());
MapperFacade mapper = factory.getMapperFacade();
BigDecimal bd = new BigDecimal("5423.51478");
Double db = mapper.map(bd, Double.class);
Assert.assertEquals(bd.doubleValue(), db.doubleValue(), 0.00001d);