@Test
    void testSingleImage() {
        // we cannot use ImagingTest and getImageByFileName, as it would cause others
        // tests to fail
        final File imageFile = TestResources.resourceToFile("/IMAGING-215/ArrayIndexOutOfBoundsException_DhtSegment_79.jpeg");
        assertThrows(ImagingException.class, () -> Imaging.getMetadata(imageFile));
    }
Test that an invalid segment will not cause an ArrayIndexOutOfBoundsException when the huffman table is created in a DHT segment.
src/test/java/org/apache/commons/imaging/formats/jpeg/JpegWithInvalidDhtSegmentTest.java