@Test
    void testGetMeanValue() {
        assertNotEquals(0, stat0.getMeanValue());

        final float[] zero = new float[100];
        Arrays.fill(zero, 10);
        final AbstractTiffRasterData zeroData = new TiffRasterDataFloat(10, 10, zero);
        final TiffRasterStatistics zeroStat = zeroData.getSimpleStatistics(10);
        assertEquals(0.0f, zeroStat.getMeanValue(), "Invalid mean data for excluded value");
    }
Test of getMeanValue method, of class TiffRasterStatistics.
src/test/java/org/apache/commons/imaging/formats/tiff/TiffRasterStatisticsTest.java