ModisProductReader extends AbstractProductReader { static boolean isGlobalAttributeName(String variableName) { return ModisConstants.STRUCT_META_KEY.equalsIgnoreCase(variableName) || ModisConstants.CORE_META_KEY.equalsIgnoreCase(variableName) || ModisConstants.ARCHIVE_META_KEY.equalsIgnoreCase(variableName); } ModisProductReader(ModisProductReaderPlugIn plugin); @Override void close();  }
@Test public void testIsGlobalAttributeName() { assertTrue(ModisProductReader.isGlobalAttributeName("StructMetadata\\.0")); assertTrue(ModisProductReader.isGlobalAttributeName("CoreMetadata\\.0")); assertTrue(ModisProductReader.isGlobalAttributeName("ArchiveMetadata\\.0")); assertFalse(ModisProductReader.isGlobalAttributeName("EV_250_Aggr1km_RefSB")); assertFalse(ModisProductReader.isGlobalAttributeName("property_thingy")); assertFalse(ModisProductReader.isGlobalAttributeName("")); assertFalse(ModisProductReader.isGlobalAttributeName(null)); }