@Test
    public void testFieldDoesNotExist() {
        LOG.error("WithExceptionsLoggedTest; 'MappingException: No read or write method found for field (fielddoesnotexist) "
                  + "in class (class com.github.dozermapper.core.vo.TestObjectPrime)'");

        testFieldDoesNotExistEE.expectMessage("No read or write method found for field (fielddoesnotexist) in class (class com.github.dozermapper.core.vo.TestObjectPrime)");
        testFieldDoesNotExistEE.expect(MappingException.class);

        mapper = getMapper("mappings/invalidmapping4.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