List<String> possibleExt = Arrays.asList(new String[] { "grb", "grb2", "grib" });
// Check if the extensions are contained
Assert.assertTrue(extensions.containsAll(possibleExt));
// Creation of a NetCDFReaderSPI objectfor checking if it supports the GRIB extension
ImageReaderSpi spi = new NetCDFImageReaderSpi();
// Selection of the suffixes, formatNames and mimetypes from the spi object
List<String> suffixes = Arrays.asList(spi.getFileSuffixes());
List<String> formatNames = Arrays.asList(spi.getFormatNames());
List<String> MIMETypes = Arrays.asList(spi.getMIMETypes());
// Creation of similar lists containing the values for the grib format
List<String> gribSuffixes = Arrays.asList(new String[] { "grib", "grb", "grb2" });
List<String> gribFormatNames = Arrays.asList(new String[] { "grib", "grib2", "GRIB",
"GRIB2" });
List<String> gribMIMETypes = Arrays.asList(new String[] { "application/octet-stream" });