@Test
public void removeOptimizerIterationListener() {

	final MockOptimizer optimizer = new MockOptimizer(null, null, null, null, null);
	OptimizerIterationListener l = (int iteration) -> {
		// nothing to be done
	};
	optimizer.addOptimizerIterationListener(l);
	optimizer.removeOptimizerIterationListener(l);
	Assert.assertTrue(optimizer.iterationListeners.isEmpty());
}