when(result3.getPreviousResult()).thenReturn(result2);
BuildResult result4 = createResult(4, 5, 15);
when(result4.hasPreviousResult()).thenReturn(true);
when(result4.getPreviousResult()).thenReturn(result3);
ResultAction action = mock(ResultAction.class);
when(action.getResult()).thenReturn(result4);
ToolTipProvider toolTipProvider = mock(ToolTipProvider.class);
when(action.getToolTipProvider()).thenReturn(toolTipProvider);
JFreeChart chart = graph.create(configuration, action, "frame");
ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));