@SuppressWarnings("unused")
    @Test
    public void testIntegerMapsToEnumOutOfOrdinalRange() {
        LOG.error("WithExceptionsLoggedTest; 'MappingException: Cannot convert [3] to enum of type class com.github.dozermapper.core.vo.enumtest.SrcTypeWithOverride'");

        testIntegerMapsToEnumOutOfOrdinalRangeEE.expectMessage("Cannot convert [3] to enum of type class com.github.dozermapper.core.vo.enumtest.SrcTypeWithOverride");
        testIntegerMapsToEnumOutOfOrdinalRangeEE.expect(MappingException.class);

        mapper = getMapper("mappings/enumMapping.xml");

        MyBeanPrimeInteger src = new MyBeanPrimeInteger();
        src.setFirst(0);
        src.setSecond(3);

        MyBean dest = mapper.map(src, MyBean.class);
    }
Test on a mapping from integer types to enum.
core/src/test/java/com/github/dozermapper/core/functional_tests/EnumMapping_WithExceptionsLoggedTest.java