@Test
public void startOptimization() throws TerminationException {

	final MockOptimizer optimizer = new MockOptimizer(null, null, null, null, null);
	Assert.assertFalse(optimizer.isRunning());
	optimizer.setOptimizeTest(new TestMethod() {
		@Override
		public void test() throws TerminationException, StopException {
			Assert.assertTrue(optimizer.isRunning());
		}
	});
	optimizer.startOptimization();
	Assert.assertFalse(optimizer.isRunning());
}