ReadCountMedian { void addRead(int read) { readCount.computeIfAbsent(read, InnerReadCount::new).increment(); count++; sum += read; } ReadCountMedian();   }
@Test public void testOneRead() { victim.addRead(100); assertMedian(100); }
@Test public void testTwoReads() { victim.addRead(100); victim.addRead(150); assertMedian(125); }
@Test public void testThreeReads() { victim.addRead(100); victim.addRead(150); victim.addRead(130); assertMedian(130); }
@Test public void testFourReads() { victim.addRead(100); victim.addRead(100); victim.addRead(150); victim.addRead(130); assertMedian(115); }
@Test public void testFiveReads() { victim.addRead(100); victim.addRead(100); victim.addRead(150); victim.addRead(130); victim.addRead(130); assertMedian(130); }