writer.dispose();
// read
final GeoTiffReader reader = new GeoTiffReader(geotiff);
if(TestData.isInteractiveTest()){
IIOMetadataDumper iIOMetadataDumper = new IIOMetadataDumper(
((GeoTiffReader) reader).getMetadata()
.getRootNode());
System.out.println(iIOMetadataDumper.getMetadata());
}
assertTrue(CRS.findMathTransform(reader.getCrs(), DefaultGeographicCRS.WGS84,true).isIdentity()); // more lenient towards metadata differences
assertTrue(CRS.equalsIgnoreMetadata(reader.getCrs(), DefaultGeographicCRS.WGS84));
}