Mockito.when(mockPlot.getEndTime()).thenReturn(new GregorianCalendar());
Mockito.when(mockPlot.getAxisOrientationSetting()).thenReturn(AxisOrientationSetting.X_AXIS_AS_TIME);
Mockito.when(mockPlot.getPlotAbstraction()).thenReturn(mockPlotAbstraction);
QCPlotObjects testQC = new QCPlotObjects(mockPlot);
XYAxis axis = testQC.plot.getPlotView().getYAxis();
Assert.assertTrue(axis instanceof LinearXYAxis);
NumberFormat format = ((LinearXYAxis) axis).getFormat();
Assert.assertTrue(format.format(1111111).contains("E"));
Assert.assertFalse(format.format(1).contains("E"));
}