private void assertRespectsMappingIds(One mapped) {
        assertNotNull(mapped);

        // Instance of Two in one.two should be mapped according to the "mapsFieldA" mapping id
        assertNotNull(mapped.getTwo());
        assertThat(mapped.getTwo().getA(), is(one.getTwo().getA()));
        assertNull(mapped.getTwo().getB());

        // Instance of Two in one.anotherTwo should be mapped according to the "mapsFieldB" mapping id
        assertNotNull(mapped.getAnotherTwo());
        assertNull(mapped.getAnotherTwo().getA());
        assertThat(mapped.getAnotherTwo().getB(), is(one.getAnotherTwo().getB()));
    }
Same instance of Two in the fields of One. Failed
in Dozer 5.5.1, fixed by pull request #257.
core/src/test/java/com/github/dozermapper/core/functional_tests/MapIdSameInstanceTest.java