// Total hard broken, no soft broken
assertEquals(0.25, scoreDefinition.calculateTimeGradient(
DefaultHardAndSoftScore.valueOf(-20, -400), DefaultHardAndSoftScore.valueOf(-10, -300),
DefaultHardAndSoftScore.valueOf(-20, -300)), 0.0);
// No hard broken, more than total soft broken
assertEquals(0.75, scoreDefinition.calculateTimeGradient(
DefaultHardAndSoftScore.valueOf(-20, -400), DefaultHardAndSoftScore.valueOf(-10, -300),
DefaultHardAndSoftScore.valueOf(-10, -900)), 0.0);
// More than total hard broken, no soft broken
assertEquals(0.0, scoreDefinition.calculateTimeGradient(
DefaultHardAndSoftScore.valueOf(-20, -400), DefaultHardAndSoftScore.valueOf(-10, -300),