### Question:
PileupEntry { public double getAlleleAverageQuality(Allele allele) { return alleleAverageQualities.get(allele); } PileupEntry(String chr, int pos, Allele refAllele, int readDepth, String basesString, int minimumBaseQuality);  PileupEntry(String chr, int pos, Allele refAllele, int readDepth, String basesString, String basesQualityString, int minimumBaseQuality); String getChr(); int getPos(); Allele getRefAllele(); int getReadDepth(); TObjectIntHashMap<Allele> getAlleleCounts(); int getAlleleCount(Allele allele); TObjectDoubleHashMap<Allele> getAlleleAverageQualities(); double getAlleleAverageQuality(Allele allele); int getMinimumBaseQuality();  }### Answer:
@Test public void testGetAlleleAverageQuality(){ assertTrue(Double.isNaN(entry1.getAlleleAverageQuality(Allele.A))); assertTrue(Double.isNaN(entry1.getAlleleAverageQuality(Allele.C))); assertTrue(Double.isNaN(entry1.getAlleleAverageQuality(Allele.G))); assertTrue(Double.isNaN(entry1.getAlleleAverageQuality(Allele.T))); assertEquals(entry5.getAlleleAverageQuality(Allele.A), 25d); assertTrue(Double.isNaN(entry5.getAlleleAverageQuality(Allele.C))); assertEquals(entry5.getAlleleAverageQuality(Allele.G), 27d); assertTrue(Double.isNaN(entry5.getAlleleAverageQuality(Allele.T))); assertEquals(entry6.getAlleleAverageQuality(Allele.A), 2.5); assertTrue(Double.isNaN(entry6.getAlleleAverageQuality(Allele.C))); assertTrue(Double.isNaN(entry6.getAlleleAverageQuality(Allele.G))); assertTrue(Double.isNaN(entry6.getAlleleAverageQuality(Allele.T))); }