@Test
    public void testCanMapAnonymousClass() {
        // Arrange: Create an anonymous class, overriding the default getter
        final String expectedName = "Helbert Rios";

        Person anonymousPerson = new Person() {
            public String getName() {
                return expectedName;
            }
        };

        anonymousPerson.setId(1);

        // Act: Map the anonymous class to the base class
        Person mappedPerson = mapper.map(anonymousPerson, Person.class);

        // Assert: Mapping should work instead of mapper.map throwing an exception
        //         (see issue #153)
        assertThat(mappedPerson.id, is(1));
        assertThat(mappedPerson.name, is(expectedName));
    }
Caused by: java.lang.IllegalAccessException - with modifiers "public" #153

@see <a href="https://github.com/DozerMapper/dozer/issues/153"/>
core/src/test/java/com/github/dozermapper/core/functional_tests/DynamicMethod.java