plot.localControlsManager = plotControlManager;
plot.panAndZoomManager = panAndZoomManager;
pcm = new PlotCornerResetButtonManager(plot);
PinSupport pins = new PinSupport();
Mockito.when(plotAbstraction.getCurrentMCTTime()).thenReturn(new GregorianCalendar().getTimeInMillis());
Mockito.when(plotAbstraction.getSubPlots()).thenReturn(Arrays.asList((AbstractPlottingPackage) plot));
Mockito.when(plotAbstraction.getTimeAxis()).thenReturn(new Axis());
Mockito.doAnswer(new Answer<Object>() {
@Override
public Object answer(InvocationOnMock invocation) throws Throwable {
plot.updateResetButtons();
return null;
}
}).when(plotAbstraction).updateResetButtons();
Mockito.when(plotAbstraction.getTimeAxisUserPin()).thenReturn(pins.createPin());
Mockito.when(plot.getNonTimeAxis()).thenReturn(new Axis());
PinSupport pins2 = new PinSupport();
Mockito.when(plot.getNonTimeAxisUserPin()).thenReturn(pins2.createPin());
Mockito.when(plot.getCurrentTimeAxisMax()).thenReturn(new GregorianCalendar());
Mockito.when(plot.getCurrentTimeAxisMin()).thenReturn(new GregorianCalendar());
Mockito.doAnswer(new Answer<Object>() {
@Override
public Object answer(InvocationOnMock invocation) throws Throwable {