@Test
    public void testPrimitiveArrayToList_UsingHint() {
        mapper = getMapper("mappings/primitiveArrayToListMapping.xml");

        int[] srcArray = new int[] {1, 2, 3};
        PrimitiveArrayObj src = newInstance(PrimitiveArrayObj.class);
        src.setField1(srcArray);

        PrimitiveArrayObjPrime dest = mapper.map(src, PrimitiveArrayObjPrime.class, "primitiveToArrayUsingHint");

        assertNotNull("dest list field should not be null", dest.getField1());
        assertEquals("invalid dest field size", srcArray.length, dest.getField1().size());

        for (int i = 0; i < srcArray.length; i++) {
            String srcValue = String.valueOf(srcArray[i]);
            String resultValue = (String)dest.getField1().get(i);
            assertEquals("invalid result entry value", srcValue, resultValue);
        }
    }
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