FrequencyData { public List<Frequency> getKnownFrequencies() { List<Frequency> freqs = new ArrayList<>(size); for (int i = 0; i < size; i++) { freqs.add(Frequency.of(sources[i], values[i])); } return freqs; } 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 testGetKnownFrequenciesNoFrequencyData() { assertThat(EMPTY_DATA.getKnownFrequencies(), equalTo(Collections.emptyList())); }
@Test public void testGetKnownFrequencies() { FrequencyData instance = FrequencyData.of(RSID, ESP_ALL_PASS, DBSNP_PASS, ESP_AA_PASS, ESP_EA_PASS); List<Frequency> expResult = new ArrayList<>(); expResult.add(DBSNP_PASS); expResult.add(ESP_AA_PASS); expResult.add(ESP_EA_PASS); expResult.add(ESP_ALL_PASS); assertThat(instance.getKnownFrequencies(), equalTo(expResult)); }