@Test
public void testStringToDateMapping() throws Exception {
mapper = getMapper("dozerBeanMapping.xml");
DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss:SS");
String dateStr = "01/29/1975 10:45:13:25";
TestObject sourceObj = newInstance(TestObject.class);
sourceObj.setDateStr(dateStr);
TestObjectPrime result = mapper.map(sourceObj, TestObjectPrime.class);
assertEquals(df.parse(dateStr), result.getDateFromStr());
assertEquals(dateStr, df.format(result.getDateFromStr()));
TestObject result2 = mapper.map(result, TestObject.class);
assertEquals(df.format(result.getDateFromStr()), result2.getDateStr());
assertEquals(result.getDateFromStr(), df.parse(result2.getDateStr()));
}