MpcScore extends ScaledPathogenicityScore { public static MpcScore of(float score) { return new MpcScore(score, score * 0.2f); } private  MpcScore(float rawScore, float scaledScore); static MpcScore of(float score);  }
@Test void inputOutOfRange() { assertThrows(IllegalArgumentException.class, () -> MpcScore.of(-0.1f)); assertThrows(IllegalArgumentException.class, () -> MpcScore.of(5.1f)); }
@Test void constructor() { MpcScore instance = MpcScore.of(1f); assertThat(instance.getSource(), equalTo(PathogenicitySource.MPC)); assertThat(instance.getScore(), equalTo(0.2f)); assertThat(instance.getRawScore(), equalTo(1f)); }
@Test void testScalingZero() { MpcScore instance = MpcScore.of(0f); assertThat(instance.getScore(), equalTo(0f)); assertThat(instance.getRawScore(), equalTo(0f)); }
@Test void testScalingHalfWay() { MpcScore instance = MpcScore.of(2.5f); assertThat(instance.getScore(), equalTo(0.5f)); assertThat(instance.getRawScore(), equalTo(2.5f)); }
@Test void testScalingFive() { MpcScore instance = MpcScore.of(5f); assertThat(instance.getScore(), equalTo(1f)); assertThat(instance.getRawScore(), equalTo(5f)); }