PinSupport pins = new PinSupport();
Mockito.when(plotAbstraction.getCurrentMCTTime()).thenReturn(new GregorianCalendar().getTimeInMillis());
Mockito.when(plotAbstraction.getTimeAxis()).thenReturn(new Axis());
Mockito.when(plotAbstraction.getTimeAxisUserPin()).thenReturn(pins.createPin());
Mockito.when(plotAbstraction.getPlotLineDraw()).thenReturn(new PlotLineDrawingFlags(true,false));
PlotSettings settings = new PlotSettings();
settings.setAxisOrientationSetting(AxisOrientationSetting.X_AXIS_AS_TIME);
settings.setMaxNonTime(100);
settings.setMinNonTime(0);