Assert.assertTrue(NetCDFUtilities.isGribAvailable());
// Selection of the input file
File file = TestData.file(this, "sampleGrib.grb2");
// Check if the grib file is accepted by the NetCDF driver
AbstractGridFormat format = new GRIBFormat();
Assert.assertTrue(format.accepts(file));
// Check if the netcdf reader spi object can read the input file
ImageReaderSpi spi = new NetCDFImageReaderSpi();
Assert.assertTrue(spi.canDecodeInput(file));
}