@Test
public void prjOverrideTesting1() throws IllegalArgumentException, IOException,
        FactoryException {

    //
    // PRJ override
    //
    final File noCrs = TestData.file(GeoTiffReaderTest.class, "override/sample.tif");
    final AbstractGridFormat format = new GeoTiffFormat();
    assertTrue(format.accepts(noCrs));
    GeoTiffReader reader = (GeoTiffReader) format.getReader(noCrs);
    CoordinateReferenceSystem crs=reader.getCoordinateReferenceSystem();
    
    final File prj= TestData.file(GeoTiffReaderTest.class, "override/sample.prj");
    final CoordinateReferenceSystem crs_=new PrjFileReader(new FileInputStream(prj).getChannel()).getCoordinateReferenceSystem();
    assertTrue(CRS.equalsIgnoreMetadata(crs, crs_));
    GridCoverage2D coverage=reader.read(null);
    assertTrue(CRS.equalsIgnoreMetadata(coverage.getCoordinateReferenceSystem(), crs_));
    coverage.dispose(true);
}