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

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

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

        MyBeanPrimeByte src = new MyBeanPrimeByte();
        src.setFirst((byte)0);
        src.setSecond((byte)3);

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