@Test
public void testCoverageDifferentCRS() throws MismatchedDimensionException, TransformException,
        FactoryException {

    // Execution of the RasterAsPointCollectionProcess setting hemisphere, scaleFactor, nearest interpolation and targetCRS
    boolean hemisphere = true;
    float scaleFactor = 2.0f;
    Interpolation interp = new InterpolationNearest();
    // Selection of the Lambert Conformal Conic CRS
    String wkt = "PROJCS[\"Lambert_Conformal_Conic\","
            + "GEOGCS[\"GCS_unknown\",DATUM[\"D_unknown\","
            + "SPHEROID[\"Sphere\",6367470,0]],PRIMEM[\"Greenwich\",0],"
            + "UNIT[\"Degree\",0.017453292519943295]],"
            + "PROJECTION[\"Lambert_Conformal_Conic_1SP\"],"
            + "PARAMETER[\"latitude_of_origin\",38.5],"
            + "PARAMETER[\"central_meridian\",-97.5]," + "PARAMETER[\"scale_factor\",1],"
            + "PARAMETER[\"false_easting\",0],"
            + "PARAMETER[\"false_northing\",0],UNIT[\"m\",1.0]]";
    CoordinateReferenceSystem targetCRS = CRS.parseWKT(wkt);
    // The input coverage is not in the Default WGS84 CRS
    SimpleFeatureCollection collection = process.execute(inputCoverage, targetCRS, scaleFactor,
            interp, hemisphere);
    // Check if the points are exactly as the number of pixel number
    Assert.assertEquals((int) (pixelNumber * scaleFactor * scaleFactor), collection.size());
    // Check if each Point Attribute contains the same values of the Input coverage
    checkCollectionPoints(collection, hemisphere, scaleFactor, targetCRS);
}