}
@Test
public void testXMLGregorianCalendarToDate() throws DatatypeConfigurationException {
Calendar cal = GregorianCalendar.getInstance();
EmployeeWithInnerClass source = new EmployeeWithInnerClass();
source.setBirthDate(DatatypeFactory.newInstance().newXMLGregorianCalendar((GregorianCalendar) cal));
TestObject result = mapper.map(source, TestObject.class);
assertNotNull(result);
assertEquals(cal.getTimeInMillis(), result.getDate().getTime());
}