@Test
    public void testNullToPrimitive() {
        mapper = getMapper("mappings/testDozerBeanMapping.xml");
        AnotherTestObject src = newInstance(AnotherTestObject.class);
        AnotherTestObjectPrime prime = newInstance(AnotherTestObjectPrime.class);
        TestObject to = newInstance(TestObject.class);
        to.setThePrimitive(AnotherTestObjectPrime.DEFAULT_FIELD1);
        prime.setTo(to);
        mapper.map(src, prime);
        // check primitive on deep field
        // primitive should still be default
        assertEquals("invalid field value", AnotherTestObjectPrime.DEFAULT_FIELD1, prime.getField1());
        assertEquals("invalid field value", AnotherTestObjectPrime.DEFAULT_FIELD1, prime.getTo().getThePrimitive());
    }
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