@Test
    public void testMaxLength() throws Exception {
        TikaConfig config = new TikaConfig(getResourceAsStream("tika-config-TIKA-3243.xml"));
        Metadata metadata = new Metadata();
        metadata.set(Metadata.CONTENT_TYPE, "image/x-psd");
        assertThrows(TikaException.class, () -> {
            getXML("testPSD_xmp.psd", config.getParser(), metadata);
        });
    }
Tests a very basic file, without much metadata,
where some of the data lengths are padded to be even
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-image-module/src/test/java/org/apache/tika/parser/image/PSDParserTest.java