@Test
public void testGlobalLegendParsingGlobalSheet() {

    final InputStream stream = XlsLegendParserTest.class.getResourceAsStream("global_Legend.xls");
    final LegendClass[] globalClasses = parser.parse(stream, false);
    assertEquals(23, globalClasses.length);
    final LegendClass class1 = new LegendClass(11, "Post-flooding or irrigated croplands (or aquatic)", "Class_1",
                                               new Color(170, 240, 240));
    assertLegendEquals(class1, globalClasses[0]);
    final LegendClass class8 = new LegendClass(70, "Closed (>40%) needleleaved evergreen forest (>5m)", "Class_8",
                                               new Color(0, 60, 0));
    assertLegendEquals(class8, globalClasses[7]);
    final LegendClass class20 = new LegendClass(200, "Bare areas", "Class_20", new Color(255, 245, 215));
    assertLegendEquals(class20, globalClasses[19]);
    final LegendClass class23 = new LegendClass(230, "No data (burnt areas, clouds,…)", "Class_23",
                                                new Color(0, 0, 0));
    assertLegendEquals(class23, globalClasses[22]);
}