@Test
    public void testNoCustomMappingForAbstractClasses_SubclassAttrsAppliedToAbstractClasses() {
        // Test that when there isnt an explicit abstract custom mapping definition the subclass mapping def attrs are
        // applied to the abstract class mapping. In this use case, wildcard="false" for the A --> B mapping definition
        mapper = getMapper("mappings/abstractMapping2.xml");

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

        assertNull("fieldB should not have been mapped", dest.getAbstractField1());
        assertNull("abstractBField should have not been mapped", dest.getAbstractBField());

        // 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