}
@Test
public void testDateToXmlGregorianCalendarConverter() {
MapperFactory factory = MappingUtil.getMapperFactory();
factory.getConverterFactory().registerConverter(new DateToXmlGregorianCalendarConverter());
MapperFacade mapper = factory.getMapperFacade();
Date now = new Date();
XMLGregorianCalendar xml = mapper.map(now, XMLGregorianCalendar.class);
Assert.assertEquals(now, xml.toGregorianCalendar().getTime());