### Question:
LandSat { public static LandSatMetaNode parseMetadata(final File file) throws IOException{ try (FileInputStream stream = new FileInputStream(file)) { return parseMetadata(stream); } } private  LandSat(); static LandSatMetaNode parseMetadata(final File file); static LandSatMetaNode parseMetadata(final Path file); static LandSatMetaNode parseMetadata(final InputStream stream); static LandSatNomenclature parseNomenclature(final String name); static Metadata toMetadata(LandSatMetaNode landsat, final String fileName);  }### Answer:
@Test public void readingTest() throws IOException{ final InputStream stream = LandSatTest.class.getResourceAsStream("/org/geotoolkit/metadata/landsat/L71172058_05820030108_MTL.txt"); final LandSatMetaNode landsat = LandSat.parseMetadata(stream); LandSatMetaNode node; node = landsat.search("L1_METADATA_FILE"); assertNotNull(node); assertEquals("L1_METADATA_FILE", node.getKey()); node = landsat.search("L1_METADATA_FILE","PRODUCT_METADATA"); assertNotNull(node); assertEquals("PRODUCT_METADATA", node.getKey()); node = landsat.search("L1_METADATA_FILE","PRODUCT_METADATA","SENSOR_ID"); assertNotNull(node); assertEquals("SENSOR_ID", node.getKey()); assertEquals("ETM+", node.getValue()); node = landsat.search("L1_METADATA_FILE","MIN_MAX_PIXEL_VALUE","QCALMAX_BAND62"); assertNotNull(node); assertEquals("QCALMAX_BAND62", node.getKey()); assertEquals("255.0", node.getValue()); node = landsat.search("L1_METADATA_FILE","PROJECTION_PARAMETERS","REFERENCE_ELLIPSOID"); assertNotNull(node); assertEquals("REFERENCE_ELLIPSOID", node.getKey()); assertEquals("WGS84", node.getValue()); }