@Test
    public void testInterface() {
        mapper = getMapper("mappings/interfaceMapping.xml");
        ApplicationUser user = newInstance(ApplicationUser.class);
        user.setSubscriberNumber("123");

        // Mapping works
        UpdateMember destObject = mapper.map(user, UpdateMember.class);

        assertEquals("invalid value for subsriber #", user.getSubscriberNumber(), destObject.getSubscriberKey().getSubscriberNumber());

        // Clear value
        destObject = new UpdateMember();

        // Mapping doesn't work
        mapper.map(user, destObject);

        assertNotNull("dest field should not be null", destObject.getSubscriberKey());
        assertEquals("invalid value for subsriber #", user.getSubscriberNumber(), destObject.getSubscriberKey().getSubscriberNumber());
    }
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