@Test(expected = MappingException.class)
    public void testMapWithInvalidGetMethod_ThrowsMappingException() {
        Mapper invalidMapper = DozerBeanMapperBuilder.create()
                .withMappingBuilder(new BeanMappingBuilder() {
                    @Override
                    protected void configure() {
                        mapping(
                                ValueContainer.class,
                                new TypeDefinition(MapWithCustomGetAndPut.class).mapMethods("invalidGetMethod", "invalidPutMethod")
                        );
                    }
                })
                .build();

        // Map to Object, will try to  use "invalidGetMethod"
        MapWithCustomGetAndPut input = MapWithCustomGetAndPut.createInput();
        invalidMapper.map(input, ValueContainer.class);

        fail("Expected MappingException");
    }
This is simply to make sure we are trying to be 'too intelligent' and still throwing exceptions
if non-existent methods are configured.
core/src/test/java/com/github/dozermapper/core/functional_tests/MapWithCustomGetAndPutMethodTest.java