### Question:
DoubleStat { Double getAvg() { return count == 0 ? null : getSum() / count; }    }### Answer:
@Test public void testEmptyAvg() { DoubleStat avg = new DoubleStat(); assertNull(avg.getAvg()); }