FrequencyData { @JsonIgnore public float getMaxFreq() { float max = 0f; for (int i = 0; i < size; i++) { max = Math.max(max, values[i]); } return 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 testGetMaxFreqWhenNoData() { float maxFreq = 0.0f; assertThat(EMPTY_DATA.getMaxFreq(), equalTo(maxFreq)); }