@Test
void whenCumulativeProbabilitySetTooLarge_thenThrowsException() {

    chooser.setProbability(VALUE_1, 0.9);
    Assertions.assertThrows(IllegalStateException.class, () -> chooser.setProbability(VALUE_2, 0.2));
}