assertEquals(false, termination.isPhaseTerminated(phaseScope));
assertEquals(0.0, termination.calculatePhaseTimeGradient(phaseScope), 0.0);
when(phaseScope.calculatePhaseTimeMillisSpent()).thenReturn(100L);
assertEquals(false, termination.isPhaseTerminated(phaseScope));
assertEquals(0.1, termination.calculatePhaseTimeGradient(phaseScope), 0.0);
when(phaseScope.calculatePhaseTimeMillisSpent()).thenReturn(500L);
assertEquals(false, termination.isPhaseTerminated(phaseScope));
assertEquals(0.5, termination.calculatePhaseTimeGradient(phaseScope), 0.0);
when(phaseScope.calculatePhaseTimeMillisSpent()).thenReturn(700L);
assertEquals(false, termination.isPhaseTerminated(phaseScope));
assertEquals(0.7, termination.calculatePhaseTimeGradient(phaseScope), 0.0);