@Test
    public void testStringToIndexedSet_UsingHint() {
        mapper = getMapper("mappings/indexMapping.xml");
        Mccoy src = newInstance(Mccoy.class);
        src.setStringProperty(String.valueOf(System.currentTimeMillis()));
        src.setField2("someValue");

        MccoyPrime dest = mapper.map(src, MccoyPrime.class, "usingDestHint");
        Set<?> destSet = dest.getFieldValueObjects();
        assertNotNull("dest set should not be null", destSet);
        assertEquals("dest set should contain 1 entry", 1, destSet.size());
        Object entry = destSet.iterator().next();
        assertTrue("dest set entry should be instance of FieldValue", entry instanceof FieldValue);
        assertEquals("invalid value for dest object", src.getStringProperty(), ((FieldValue)entry).getValue("theKey"));
    }
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