@Test
    public void testSortedSetToSet() {
        NamesSortedSet from = newInstance(NamesSortedSet.class);
        NamesSet to = null;
        SortedSet<String> names = newInstance(TreeSet.class);

        names.add("Bone");
        names.add("White");
        names.add("Beige");
        names.add("Ivory");
        names.add("Cream");
        names.add("Off white");
        from.setNames(names);

        to = mapper.map(from, NamesSet.class);

        assertNotNull(to);
        assertEquals(names.size(), to.getNames().size());
    }
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