AbstractOptimizer implements Optimizer { @Override public int getIteration() { return iteration.value; } AbstractOptimizer(Population population, Archive archive, IndividualCompleter completer, Control control,
			Iteration iteration); @Override int getIteration(); @Override boolean isRunning(); @Override void startOptimization(); @Override void stopOptimization(); @Override void addOptimizerIterationListener(OptimizerIterationListener listener); @Override void addOptimizerStateListener(OptimizerStateListener listener); @Override void removeOptimizerIterationListener(OptimizerIterationListener listener); @Override void removeOptimizerStateListener(OptimizerStateListener listener);  }
@Test public void getIteration() { MockOptimizer optimizer = new MockOptimizer(null, null, null, null, new Iteration(2)); Assert.assertEquals(0, optimizer.getIteration()); }