@Test
public void treatZeroAsDataValue() throws Exception {

    final float[][] DATA = {
        {1, 1, 1, 1, 0, 1, 1, 1, 1},
        {1, 0, 0, 1, 0, 1, 0, 0, 1},
        {1, 0, 0, 1, 0, 1, 0, 0, 1},
        {1, 1, 1, 1, 0, 1, 1, 1, 1}
    };
    final int NUM_POLYS = 5;
    GridCoverage2D cov = covFactory.create(
            "coverage",
            DATA,
            new ReferencedEnvelope(0, DATA[0].length, 0, DATA.length, null));
    Number[] noDataValues = { -1 };
    SimpleFeatureCollection fc = process.execute(cov, 0, Boolean.TRUE, null, Arrays.asList(noDataValues), null, null);
    assertEquals(NUM_POLYS, fc.size());
}