### Question:
NcAvhrrGacProductReaderPlugIn implements ProductReaderPlugIn { @Override public DecodeQualification getDecodeQualification(Object input) { final File inputFile = new File(input.toString()); final String inputFileName = inputFile.getName(); if (!inputFileName.endsWith(FILE_EXTENSION_NC)) { return DecodeQualification.UNABLE; } if (matches(inputFileName)) { return DecodeQualification.INTENDED; } return DecodeQualification.UNABLE; }  @Override DecodeQualification getDecodeQualification(Object input); @Override Class[] getInputTypes(); @Override ProductReader createReaderInstance(); @Override String[] getFormatNames(); @Override String[] getDefaultFileExtensions(); @Override String getDescription(Locale locale); @Override BeamFileFilter getProductFileFilter(); static final String FORMAT_NAME; }### Answer:
@Test public void testGetDecodeQualification() throws Exception { final File file = new File("19910101000100-ESACCI-L1C-AVHRR11_G-fv01.0.nc"); assertEquals(DecodeQualification.INTENDED, plugIn.getDecodeQualification(file)); assertEquals(DecodeQualification.INTENDED, plugIn.getDecodeQualification(file.getPath())); assertEquals(DecodeQualification.UNABLE, plugIn.getDecodeQualification("20100601.egr")); assertEquals(DecodeQualification.UNABLE, plugIn.getDecodeQualification("aai_20101224.nc")); assertEquals(DecodeQualification.UNABLE, plugIn.getDecodeQualification("ice_conc_nh_201006301200.hdf")); assertEquals(DecodeQualification.UNABLE, plugIn.getDecodeQualification("ice_conc_sh_qual_201006301200.hdf")); }