@Test
public void testDateToCalendarConverter() {
MapperFactory factory = MappingUtil.getMapperFactory();
factory.getConverterFactory().registerConverter(new DateToCalendarConverter());
MapperFacade mapper = factory.getMapperFacade();
Date now = new Date();
Calendar cal = mapper.map(now, Calendar.class);
Assert.assertEquals(now, cal.getTime());