@Test
    public void testEncryptedODTFile() throws Exception {
        //the password to this file is "tika"
        Path p =
                Paths.get(
                        ODFParserTest.class.getResource(
                                "/test-documents/testODTEncrypted.odt").toURI());
        assertThrows(EncryptedDocumentException.class, () -> {
            getRecursiveMetadata(p, false);
        });

        List<Metadata> metadataList = getRecursiveMetadata(p, true);
        assertEquals("true", metadataList.get(0).get(TikaCoreProperties.IS_ENCRYPTED));
    }
Similar to {@link #testOO2()} )}, but using an OO3 file
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/test/java/org/apache/tika/parser/odf/ODFParserTest.java