singleConsole.startSampling();
SampleModelImplementationEx sampleModelMock = mock(SampleModelImplementationEx.class);
singleConsole.setSampleModel(sampleModelMock);
StatisticExpression exp = mock(StatisticExpression.class);
StatisticsSet statisticMock = mock(StatisticsSet.class);
StatisticsSet statisticAccumulatedMock = mock(StatisticsSet.class);
when(statisticMock.snapshot()).thenReturn(statisticMock);
when(statisticAccumulatedMock.snapshot()).thenReturn(statisticAccumulatedMock);
when(exp.getDoubleValue(any(StatisticsSet.class))).thenReturn(3D);
when(sampleModelMock.getTPSExpression()).thenReturn(exp);
singleConsole.update(statisticMock, statisticAccumulatedMock);
singleConsole.update(statisticMock, statisticAccumulatedMock);