@Test
    public void testSimpleGenericsInheritance() {
        Mapper mapper = DozerBeanMapperBuilder.buildDefault();

        B b = new B();
        b.setId(15);

        AA aa = mapper.map(b, AA.class);
        Assert.assertEquals((Long)b.getId().longValue(), aa.getId());

        AA aa2 = mapper.map(b, AA.class);
        Assert.assertEquals((Long)b.getId().longValue(), aa2.getId());

    }
test mapping of a generic field with inheritance
core/src/test/java/com/github/dozermapper/core/functional_tests/GenericsTest.java