@Test
public void testIsMetadataFile() throws Exception {

    InputStream positiveFile1 = getClass().getResourceAsStream("test_L8_MTL.txt");
    assertTrue(LandsatGeotiffReaderPlugin.isMetadataFile(positiveFile1));
    InputStream positiveFile2 = getClass().getResourceAsStream("test_legacy_L5_WithTrailingWhiteSpace_MTL.txt");
    assertTrue(LandsatGeotiffReaderPlugin.isMetadataFile(positiveFile2));
}