@Test
    public void testStringToDateMapping() throws Exception {
        mapper = getMapper("mappings/testDozerBeanMapping.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()));
    }
When the source type is a Set and the destination is a Collection we expect that the
mapper narrows to the Set type instead of using a List by default.
<p>
issue https://github.com/DozerMapper/dozer/issues/287
core/src/test/java/com/github/dozermapper/core/functional_tests/GranularDozerBeanMapperTest.java