SmosProductReaderPlugIn implements ProductReaderPlugIn { @Override public String[] getFormatNames() { if (SmosUtils.isLightBufrTypeSupported()) { return FORMAT_NAMES_WITH_BUFR; } else { return FORMAT_NAMES; } }  @Override SmosProductReader createReaderInstance(); @Override DecodeQualification getDecodeQualification(Object input); @Override Class[] getInputTypes(); @Override String[] getDefaultFileExtensions(); @Override String getDescription(Locale locale); @Override String[] getFormatNames(); @Override BeamFileFilter getProductFileFilter();  }
@Test public void testGetFormatNames() { final String[] formatNames = plugIn.getFormatNames(); if (SmosUtils.isLightBufrTypeSupported()) { assertEquals(2, formatNames.length); assertEquals("SMOS-EEF", formatNames[0]); assertEquals("SMOS Light-BUFR", formatNames[1]); } else { assertEquals(1, formatNames.length); assertEquals("SMOS-EEF", formatNames[0]); } }