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

        testLongMapsToEnumOutOfOrdinalRangeEE.expectMessage("Cannot convert [BAZ] to enum of type class com.github.dozermapper.core.vo.enumtest.SrcType");
        testLongMapsToEnumOutOfOrdinalRangeEE.expect(MappingException.class);

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

        MyBeanPrimeString src = new MyBeanPrimeString();
        src.setDestType("BAZ");

        MyBean dest = mapper.map(src, MyBean.class);
    }
Test on a mapping from {@link String} to enum with non-existing enum value.
core/src/test/java/com/github/dozermapper/core/functional_tests/EnumMapping_WithExceptionsLoggedTest.java