@Test
    public void testWrongClassName() {
        LOG.error("WithExceptionsLoggedTest; 'MappingException: java.lang.ClassNotFoundException: com.github.dozermapper.core.vo.TestObjectNNNNNNN'");

        testWrongClassNameEE.expectMessage("java.lang.ClassNotFoundException: com.github.dozermapper.core.vo.TestObjectNNNNNNN");
        testWrongClassNameEE.expect(MappingException.class);

        mapper = getMapper("mappings/invalidmapping1.xml");
        mapper.map("1", Integer.class);

        fail();
    }
Messages of SAXExceptions are localized, so we have to set the language to English as expected by the tests.
core/src/test/java/com/github/dozermapper/core/functional_tests/InvalidMapping_WithExceptionsLoggedTest.java