}
@Test
public void testCalendarToXmlGregorianCalendarConverter() {
MapperFactory factory = MappingUtil.getMapperFactory();
factory.getConverterFactory().registerConverter(new CalendarToXmlGregorianCalendarConverter());
MapperFacade mapper = factory.getMapperFacade();
Calendar cal = Calendar.getInstance();
XMLGregorianCalendar xml = mapper.map(cal, XMLGregorianCalendar.class);
Assert.assertEquals(cal.getTime(), xml.toGregorianCalendar().getTime());