@Test
public void testAdaptiveMath() {

	int num = 400;
	int min = 10;
	int max = 50;
	double overhead = 0.15;
	CreateTask someTask = new CreateTask(num, min, max, 0, 0, overhead);
	
	for( int i = 0; i <= 400; i++ ) {
		int target = TurkHITController.getAdaptiveTarget(i, someTask);						
		
		assertTrue(target >= i + min);
		assertTrue(target <= i + max);
		
		assertTrue(target == i + min || target == i + max || target == (int) Math.round(i * (1+overhead) ) );
	}	
}