@Test
    public void testNoFieldB() {
        LOG.error(
                "WithExceptionsLoggedTest; 'MappingException: cvc-complex-type.2.4.b: The content of element 'field' is not complete. "
                + "One of '{\"http://dozermapper.github.io/schema/bean-mapping\":b}' is expected'");

        testNoFieldBEE.expectMessage(Matchers.containsString(
                "cvc-complex-type.2.4.b: The content of element 'field' is not complete. One of '{\"http://dozermapper.github.io/schema/bean-mapping\":b}' is expected"));
        testNoFieldBEE.expect(MappingException.class);

        mapper = getMapper("non-strict/invalidmapping2.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