@Test
    public void testNoCustomMappingForAbstractClasses() {
        // Test that wildcard fields in abstract classes are mapped when there is no explicit abstract custom mapping
        // definition
        mapper = DozerBeanMapperBuilder.buildDefault();

        A src = getA();
        B dest = mapper.map(src, B.class);

        assertEquals("abstractField1 not mapped correctly", src.getAbstractField1(), dest.getAbstractField1());
        assertEquals("field1 not mapped correctly", src.getField1(), dest.getField1());
        assertNull("abstractBField should not have been mapped", dest.getAbstractBField());
        assertNull("fieldB should not have been mapped", dest.getFieldB());

        // Remap to each other to test bi-directional mapping
        A mappedSrc = mapper.map(dest, A.class);
        B mappedDest = mapper.map(mappedSrc, B.class);

        assertEquals("objects not mapped correctly bi-directional", dest, mappedDest);
    }
Unit tests for data objects that have Abstract Class(s) in their object hierarchy
core/src/test/java/com/github/dozermapper/core/functional_tests/InheritanceAbstractClassMappingTest.java