FrequencyData { public float getScore() { float max = getMaxFreq(); if (max <= 0) { return VERY_RARE_SCORE; } else if (max > 2) { return NOT_RARE_SCORE; } else { return 1.13533f - (0.13533f * (float) Math.exp(max)); } } private  FrequencyData(RsId rsId, Collection<Frequency> frequencies); static FrequencyData of(RsId rsId, Collection<Frequency> frequencies); static FrequencyData of(RsId rsId, Frequency frequency); static FrequencyData of(RsId rsId, Frequency... frequency); static FrequencyData of(Frequency frequency); static FrequencyData of(Frequency... frequency); static FrequencyData empty(); RsId getRsId(); Frequency getFrequencyForSource(FrequencySource source); @JsonIgnore boolean isRepresentedInDatabase(); @JsonIgnore boolean hasDbSnpData(); @JsonIgnore boolean hasDbSnpRsID(); @JsonIgnore boolean hasEspData(); @JsonIgnore boolean hasExacData(); @JsonIgnore boolean hasKnownFrequency(); boolean hasFrequencyOverPercentageValue(float maxFreq); List<Frequency> getKnownFrequencies(); @JsonIgnore float getMaxFreq(); float getScore(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testGetScoreReallyRareVariant() { assertThat(EMPTY_DATA.getScore(), equalTo(1f)); }