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);