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

    //
    // no crs geotiff
    //
    final File noCrs = TestData.file(GeoTiffReaderTest.class, "no_crs.tif");
    final AbstractGridFormat format = new GeoTiffFormat();
    assertTrue(format.accepts(noCrs));
    GeoTiffReader reader = (GeoTiffReader) format.getReader(noCrs);
    CoordinateReferenceSystem crs=reader.getCoordinateReferenceSystem();
    assertTrue(CRS.equalsIgnoreMetadata(crs, AbstractGridFormat.getDefaultCRS()));
    GridCoverage2D coverage=reader.read(null);
    assertTrue(CRS.equalsIgnoreMetadata(coverage.getCoordinateReferenceSystem(),
            AbstractGridFormat.getDefaultCRS()));
    
    // hint for CRS
    crs = CRS.decode("EPSG:32632", true);
    final Hints hint = new Hints();
    hint.put(Hints.DEFAULT_COORDINATE_REFERENCE_SYSTEM, crs);
    // getting a reader
    reader = new GeoTiffReader(noCrs, hint);
    // reading the coverage
    GridCoverage2D coverage1 = reader.read(null);
    // check coverage and crs
    assertNotNull(coverage1);
    assertNotNull(coverage1.getCoordinateReferenceSystem());
    assertEquals(CRS.lookupIdentifier(coverage1.getCoordinateReferenceSystem(), true),
            "EPSG:32632");
    reader.dispose();
    //
    // use prj and wld
    //
    final File wldprjFile = TestData.file(GeoTiffReaderTest.class, "no_crs_no_envelope.tif");
    assertTrue(format.accepts(wldprjFile));
    // getting a reader
    reader = new GeoTiffReader(wldprjFile);
    // reading the coverage
    GridCoverage2D coverage2 = reader.read(null);
    // check coverage and crs
    assertNotNull(coverage2);
    assertNotNull(coverage2.getCoordinateReferenceSystem());
    assertEquals(CRS.lookupIdentifier(coverage2.getCoordinateReferenceSystem(), true),
            "EPSG:32632");
    reader.dispose();
    //
    // use prj and hint
    //
    final File wldFile = TestData.file(GeoTiffReaderTest.class, "no_crs_no_envelope2.tif");
    assertTrue(format.accepts(wldFile));
    // getting a reader
    reader = new GeoTiffReader(wldFile, hint);
    // reading the coverage
    GridCoverage2D coverage3 = reader.read(null);
    // check coverage and crs
    assertNotNull(coverage3);
    assertNotNull(coverage3.getCoordinateReferenceSystem());
    assertEquals(CRS.lookupIdentifier(coverage3.getCoordinateReferenceSystem(), true),
            "EPSG:32632");
    reader.dispose();
    
    coverage1.dispose(true);
    coverage2.dispose(true);
    coverage3.dispose(true);
}