Allele implements Comparable<Allele> { public void addValue(AlleleProperty key, Float value) { values.put(key, value); } Allele(int chr, int pos, String ref, String alt); int getChr(); int getPos(); String getRef(); String getAlt(); String getRsId(); void setRsId(String rsId); boolean hasClinVarData(); ClinVarData getClinVarData(); void setClinVarData(ClinVarData clinVarData); Map<AlleleProperty, Float> getValues(); void addValue(AlleleProperty key, Float value); Float getValue(AlleleProperty key); @Override int compareTo(Allele other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testAddValue() { Allele instance = new Allele(1, 123456, "A", "C"); instance.addValue(AlleleProperty.KG, 0.12f); System.out.println(instance); assertThat(instance.getValue(AlleleProperty.KG), equalTo(0.12f)); assertThat(instance.getValues().size(), equalTo(1)); }