</RasterSymbolizer>*/
RasterSymbolizer sym = (RasterSymbolizer) parse("example-rastersymbolizer1.xml");
assertEquals(1.0, sym.getOpacity().evaluate(null, Double.class));
assertEquals(OverlapBehavior.AVERAGE, sym.getOverlapBehavior());
ColorMap map = sym.getColorMap();
assertNotNull(map);
assertEquals(20, map.getColorMapEntries().length);
//
Color c = map.getColorMapEntry(0).getColor().evaluate(null, Color.class);
assertEquals(0, c.getRed());
assertEquals(255, c.getGreen());
assertEquals(0, c.getBlue());
c = map.getColorMapEntry(1).getColor().evaluate(null, Color.class);
assertEquals(0, c.getRed());
assertEquals(250, c.getGreen());
assertEquals(0, c.getBlue());
assertEquals(-417d, map.getColorMapEntry(1).getQuantity().evaluate(null, Double.class));
c = map.getColorMapEntry(19).getColor().evaluate(null, Color.class);
assertEquals(Color.WHITE, c);
assertEquals(13000d, map.getColorMapEntry(19).getQuantity().evaluate(null, Double.class));
}