assertEquals(0.0, scoreDefinition.calculateTimeGradient(
DefaultHardAndSoftScore.valueOf(-20, -400), DefaultHardAndSoftScore.valueOf(-10, -300),
DefaultHardAndSoftScore.valueOf(-90, -300)), 0.0);
// Perfect min/max cases
assertEquals(1.0, scoreDefinition.calculateTimeGradient(
DefaultHardAndSoftScore.valueOf(-10, -300), DefaultHardAndSoftScore.valueOf(-10, -300),
DefaultHardAndSoftScore.valueOf(-10, -300)), 0.0);
assertEquals(0.0, scoreDefinition.calculateTimeGradient(
DefaultHardAndSoftScore.valueOf(-20, -400), DefaultHardAndSoftScore.valueOf(-10, -300),
DefaultHardAndSoftScore.valueOf(-20, -400)), 0.0);