int maxNrOfStagnatingSteps = 50;
Solver solver = mock(Solver.class);
when(solver.getCurrentSolution()).thenReturn(mock(Solution.class));
TerminationCondition terminator = new StagnationTermination(solver, maxNrOfStagnatingSteps);
assert terminator.shouldTerminate() == false;
for (int i = 0; i < maxNrOfStagnatingSteps - 1; i++) {
assert terminator.shouldTerminate() == false;
}