EnviProductReaderPlugIn implements ProductReaderPlugIn { @Override public BeamFileFilter getProductFileFilter() { return new BeamFileFilter(getFormatNames()[0], getDefaultFileExtensions(), getDescription(null)); }  @Override DecodeQualification getDecodeQualification(Object input); @Override String[] getFormatNames(); @Override ProductReader createReaderInstance(); @Override String[] getDefaultFileExtensions(); @Override Class[] getInputTypes(); @Override String getDescription(Locale locale); @Override BeamFileFilter getProductFileFilter();  }
@Test public void testGetProductFileFilter() { final BeamFileFilter beamFileFilter = readerPlugIn.getProductFileFilter(); assertEquals(".hdr", beamFileFilter.getDefaultExtension()); final String[] extensions = beamFileFilter.getExtensions(); assertEquals(".hdr", extensions[0]); assertEquals(".zip", extensions[1]); assertEquals("ENVI Data Products (*.hdr,*.zip)", beamFileFilter.getDescription()); assertEquals("ENVI", beamFileFilter.getFormatName()); }