@Test
    void test() throws IOException {
        final File tiffFolder = new File(ImagingTestConstants.TEST_IMAGE_FOLDER, "tiff");
        final File bigTiffFolder = new File(tiffFolder, "13");

        final File classicFile = new File(bigTiffFolder, "Classic.tif");
        final BufferedImage classicImage = Imaging.getBufferedImage(classicFile);
        assertNotNull(classicImage);
        final int w = classicImage.getWidth();
        final int h = classicImage.getHeight();
        final int[] classicRgb = new int[w * h];
        classicImage.getRGB(0, 0, w, h, classicRgb, 0, w); // data for comparison

        int nTest = 0;
        final File[] files = bigTiffFolder.listFiles();
        for (final File f : files) {
            final String name = f.getName();
            if (!name.toLowerCase().startsWith("bigtiff")) {
                continue;
            }
            final BufferedImage image = Imaging.getBufferedImage(f);
            assertNotNull(image);
            final boolean status = doImagesMatch(w, h, classicRgb, image);
            assertTrue(status, "BigTIFF content does not match test image for " + name);
            nTest++;
        }

        assertTrue(nTest > 0, "JUnit test failed to find sample BigTIFF files");
    }
Reads files in the BigTIFF samples folder and compares the BigTIFF files against the standard "classic" tiff image.
src/test/java/org/apache/commons/imaging/formats/tiff/TiffBigTiffTest.java