ModisFileReader { static boolean isEosGridType(ModisGlobalAttributes globalAttribs) throws IOException { return ModisConstants.EOS_TYPE_GRID.equals(globalAttribs.getEosType()); } ModisFileReader(); void addRastersAndGeoCoding(final Product product, ModisGlobalAttributes globalAttribs, NetCDFVariables netCDFVariables); ModisBandReader getBandReader(final Band band); void close();  }
@Test public void testIsEosGridType() throws IOException { final TestGlobalAttributes globalAttributes = new TestGlobalAttributes(); globalAttributes.setEosType(ModisConstants.EOS_TYPE_GRID); assertTrue(ModisFileReader.isEosGridType(globalAttributes)); globalAttributes.setEosType("EOS_invalid_and_ausgedacht"); assertFalse(ModisFileReader.isEosGridType(globalAttributes)); }