ClassMapBuilder<Order, OrderData> builder = ClassMapBuilder.map(Order.class, OrderData.class);
ClassMap<Order, OrderData> classMap = builder.field("id", "number").byDefault().toClassMap();
mapperFactory.registerClassMap(classMap);
MapperFacade facade = mapperFactory.getMapperFacade();
OrderData data = new OrderData(1234l);
Order order = facade.map(data, Order.class);
Assert.assertEquals(Long.valueOf(1234l), order.getId());
}