XYAxis xAxis = plotView.getXAxis();
XYAxis yAxis = plotView.getYAxis();
LinearXYPlotLine plot = new LinearXYPlotLine(xAxis, yAxis, XYDimension.X);
Font font = new Font("Arial", Font.PLAIN, 10);
LegendEntry legend = new LegendEntry(Color.white, Color.white, font, new AbbreviatingPlotLabelingAlgorithm());
legend.setPlot(plot);
PlotDataSeries data = new PlotDataSeries(testPlot, "test", Color.white);
data.setLegend(legend);
Assert.assertEquals(data.getColor(), Color.white);
data.setPlottingColor(Color.black);