@Test
public void addOptimizerIterationListener() {

	final MockOptimizer optimizer = new MockOptimizer(null, null, null, null, null);
	OptimizerIterationListener l = (int iteration) -> {
		// nothing to be done
	};
	optimizer.addOptimizerIterationListener(l);
	Assert.assertEquals(1, optimizer.iterationListeners.size());
	Assert.assertSame(l, optimizer.iterationListeners.iterator().next());
}