public void setup() {
long now = new GregorianCalendar().getTimeInMillis();
MockitoAnnotations.initMocks(this);
Mockito.when(mockPlotViewManifestation.getCurrentMCTTime()).thenReturn(now);
Mockito.when(plotView.getCurrentMCTTime()).thenReturn(now);
Mockito.when(plotView.getTimeAxis()).thenReturn(new Axis());
Mockito.when(plotView.getTimeAxisUserPin()).thenReturn(new PinSupport().createPin());
Mockito.when(plotView.getSubPlots()).thenReturn(plots);
Mockito.when(plotView.getMinTime()).thenReturn(now - 360000);
Mockito.when(plotView.getMaxTime()).thenReturn(now + 360000);
Mockito.when(plotView.getXAxisMaximumLocation()).thenReturn(XAxisMaximumLocationSetting.MAXIMUM_AT_RIGHT);