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

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

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

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

        List<?> srcObjectList = CollectionUtils.convertPrimitiveArrayToList(i);
        assertEquals("invalid dest field value", srcObjectList, dest.getField1());
    }
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