### Question:
LandsatGeotiffReaderPlugin implements ProductReaderPlugIn { static boolean isCompressedFile(File file) { final String extension = FileUtils.getExtension(file); if (StringUtils.isNullOrEmpty(extension)) { return false; } return extension.contains("zip") || extension.contains("tar") || extension.contains("tgz") || extension.contains("gz"); }  @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 VirtualDir getInput(Object input);  }### Answer:
@Test public void testIsCompressedFile() { assertTrue(LandsatGeotiffReaderPlugin.isCompressedFile(new File("test.zip"))); assertTrue(LandsatGeotiffReaderPlugin.isCompressedFile(new File("test.tar"))); assertTrue(LandsatGeotiffReaderPlugin.isCompressedFile(new File("test.tgz"))); assertTrue(LandsatGeotiffReaderPlugin.isCompressedFile(new File("test.tar.gz"))); assertTrue(LandsatGeotiffReaderPlugin.isCompressedFile(new File("test.gz"))); assertFalse(LandsatGeotiffReaderPlugin.isCompressedFile(new File("test.txt"))); assertFalse(LandsatGeotiffReaderPlugin.isCompressedFile(new File("test.doc"))); assertFalse(LandsatGeotiffReaderPlugin.isCompressedFile(new File("test.xml"))); assertFalse(LandsatGeotiffReaderPlugin.isCompressedFile(new File("test"))); }