hints.add(new RenderingHints(JAI.KEY_IMAGE_LAYOUT, l));
// get a reader
final URL url = file.toURI().toURL();
final Object source = url;
final BaseGDALGridCoverage2DReader reader = new EnviHdrReader(source, hints);
// Testing the getSource method
Assert.assertEquals(reader.getSource(), source);
// /////////////////////////////////////////////////////////////////////
//
// read once
//
// /////////////////////////////////////////////////////////////////////
GridCoverage2D gc = (GridCoverage2D) reader.read(null);
forceDataLoading(gc);
GridSampleDimension[] sampleDimensions = gc.getSampleDimensions();
Assert.assertEquals(9, sampleDimensions.length);
for (int i = 0; i < sampleDimensions.length; i++) {