WorldFireReaderPlugIn implements ProductReaderPlugIn { @Override public BeamFileFilter getProductFileFilter() { return new BeamFileFilter(FORMAT_NAME, getDefaultFileExtensions(), getDescription(null)); }  @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();  }
@Test public void testProductFileFilter() throws Exception { final BeamFileFilter beamFileFilter = plugIn.getProductFileFilter(); assertNotNull("null not expected for file filter", beamFileFilter); assertTrue(beamFileFilter.accept(TestResourceHelper.getAatsrAlgo1AsFile())); assertTrue(beamFileFilter.accept(TestResourceHelper.getAatsrAlgo2AsFile())); assertTrue(beamFileFilter.accept(TestResourceHelper.getAtsr2Algo1AsFile())); assertTrue(beamFileFilter.accept(TestResourceHelper.getAtsr2Algo2AsFile())); File tempFile = File.createTempFile("file", ".FIRE"); assertTrue(beamFileFilter.accept(tempFile)); tempFile = File.createTempFile("file", ".butWrongExtension"); assertFalse(beamFileFilter.accept(tempFile)); assertFalse(beamFileFilter.accept(new File("9708ESA02.notAFile"))); }