}
@Test
public void testAttachPlotLine() {
// Attaching a plot line should update the color of the legend to match
AbstractPlotLine mockPlotLine = Mockito.mock(AbstractPlotLine.class);
Mockito.when(mockPlotLine.getColor()).thenReturn(TEST_COLOR);
Assert.assertFalse(containsColor(drawComponent(view), TEST_COLOR));
view.attachPlotLine(mockPlotLine);
Assert.assertTrue (containsColor(drawComponent(view), TEST_COLOR));
}