@Test
    void testGetData() {
        final float[] result = raster.getData();
        assertArrayEquals(data, result);
        final int samplesPerPixel = raster.getSamplesPerPixel();
        assertEquals(1, samplesPerPixel, "Incorrect number of samples per pixel");
    }
Test of getData method, of class TiffRasterData.
src/test/java/org/apache/commons/imaging/formats/tiff/TiffRasterDataTest.java