@Test
public void throwsExceptionWithNonPercentageValue() {

    //check upper bounds
    Map<SubModeOfInheritance, Float> tooHigh = ImmutableMap.of(SubModeOfInheritance.AUTOSOMAL_DOMINANT, 101f);
    assertThrows(IllegalArgumentException.class, () -> InheritanceModeOptions.of(tooHigh));
    //check lower bounds
    Map<SubModeOfInheritance, Float> tooLow = ImmutableMap.of(SubModeOfInheritance.AUTOSOMAL_DOMINANT, -1f);
    assertThrows(IllegalArgumentException.class, () -> InheritanceModeOptions.of(tooLow));
}