@Test
    public void testExceptions1() throws Exception {
        XMLResult xml;
        LoggerContext ctx = (LoggerContext) LogManager.getContext();
        LoggerConfig lc = ctx.getConfiguration().getRootLogger();
        Level originalLevel = lc.getLevel();
        lc.setLevel(Level.ERROR);
        try {
            xml = getXML("testException1.doc");
            assertContains("total population", xml.xml);
            xml = getXML("testException2.doc");
            assertContains("electric charge", xml.xml);
        } finally {
            lc.setLevel(originalLevel);
        }
    }
Ensures that custom OLE2 (HPSF) properties are extracted
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/test/java/org/apache/tika/parser/microsoft/WordParserTest.java