The raster legend border colour is ignored.
In class org.geoserver.wms.legendgraphic.RasterLayerLegendHelper the method parseRequest() creates all the necessary objects with the correct legend configuration.
The following line creates all the necessary raster legend with configuration:
However the border colour is not available until the following line is called:
This is after the colour entry objects are created hence the border colours are always black.