ModisProductReaderPlugIn implements ProductReaderPlugIn { @SuppressWarnings("SimplifiableIfStatement") static boolean hasHdfFileExtension(File inputFile) { if (inputFile == null) { return false; } return inputFile.getPath().toLowerCase().endsWith(ModisConstants.DEFAULT_FILE_EXTENSION); }  DecodeQualification getDecodeQualification(Object input); Class[] getInputTypes(); ProductReader createReaderInstance(); SnapFileFilter getProductFileFilter(); String[] getDefaultFileExtensions(); String getDescription(Locale locale); String[] getFormatNames();  }
@Test public void testHasHdfFileExtension() { assertFalse(ModisProductReaderPlugIn.hasHdfFileExtension(null)); assertFalse(ModisProductReaderPlugIn.hasHdfFileExtension(new File("tonio_und.tom"))); assertTrue(ModisProductReaderPlugIn.hasHdfFileExtension(new File("I_am_but.hdf"))); }