ModisFileReader { static String getTypeString(String type, Product product) { final String prodType; if (type == null) { prodType = product.getProductType(); } else { prodType = type; } return prodType; } ModisFileReader(); void addRastersAndGeoCoding(final Product product, ModisGlobalAttributes globalAttribs, NetCDFVariables netCDFVariables); ModisBandReader getBandReader(final Band band); void close();  }
@Test public void testGetTypeString_typeNull() { final Product product = new Product("Name", "PROD_TYPE", 5, 5); assertEquals("PROD_TYPE", ModisFileReader.getTypeString(null, product)); }
@Test public void testGetTypeString_typeSupplied() { final Product product = new Product("Name", "PROD_TYPE", 5, 5); assertEquals("TYPE_STRING", ModisFileReader.getTypeString("TYPE_STRING", product)); }