### Question:
ReaderFactory { @SuppressWarnings({"unchecked"}) public static Reader createReader(String readerSpec, String sensorName) { Assert.argument(readerSpec != null, "readerSpec == null"); Assert.argument(sensorName != null, "sensorName == null"); return createReader(readerSpec, sensorName, null); } private  ReaderFactory(); static Reader open(DataFile datafile, Configuration configuration); @SuppressWarnings({"unchecked"}) static Reader createReader(String readerSpec, String sensorName); static final String DEFAULT_READER_SPEC; }### Answer:
@Test public void testCreateDecoratedProductReader() throws Exception { final Reader reader = ReaderFactory.createReader("GunzipDecorator,ProductReader", ""); assertNotNull(reader); assertTrue(reader instanceof GunzipDecorator); }
@Test public void testCreateDecoratedAaiProductReader() throws Exception { final Reader reader = ReaderFactory.createReader("GunzipDecorator,AaiProductReader", ""); assertNotNull(reader); assertTrue(reader instanceof GunzipDecorator); }
@Test public void testCreateAaiProductReader() throws Exception { final Reader reader = ReaderFactory.createReader("AaiProductReader", ""); assertNotNull(reader); assertTrue(reader instanceof AaiProductReader); }
@Test public void testCreateMdReaders() throws Exception { Reader reader = ReaderFactory.createReader("MetopMdReader", ""); assertNotNull(reader); assertTrue(reader instanceof MetopMdReader); reader = ReaderFactory.createReader("AtsrMdReader", ""); assertNotNull(reader); assertTrue(reader instanceof AtsrMdReader); reader = ReaderFactory.createReader("SeviriMdReader", ""); assertNotNull(reader); assertTrue(reader instanceof SeviriMdReader); reader = ReaderFactory.createReader("AvhrrMdReader", ""); assertNotNull(reader); assertTrue(reader instanceof AvhrrMdReader); reader = ReaderFactory.createReader("InsituReader", ""); assertNotNull(reader); assertTrue(reader instanceof InsituReader); }
@Test public void testCreateInsituReader() throws Exception { final Reader reader = ReaderFactory.createReader("InsituReader", ""); assertNotNull(reader); assertTrue(reader instanceof InsituReader); }
@Test public void testCreateProductReader() throws Exception { final Reader reader = ReaderFactory.createReader("ProductReader", ""); assertNotNull(reader); assertTrue(reader instanceof ProductReader); }
@Test public void testCreateProductReader_with_dirty_mask() throws Exception { final Reader reader = ReaderFactory.createReader("ProductReader", "", "false"); assertNotNull(reader); assertTrue(reader instanceof ProductReader); }