### Question:
Hits { public synchronized Map<ResponseSummary, Long> extractUnreportedHits() { int sizeBeforeExtract = unreportedHits.size(); Map<ResponseSummary, Long> entry = new ConcurrentHashMap<>(unreportedHits); unreportedHits.clear(); int sizeAfterExtract = unreportedHits.size(); LOG.debug("Hits size extract: {} -> {}", sizeBeforeExtract, sizeAfterExtract); LOG.debug("extracted entry: {}", entry); return entry; }  synchronized Map<ResponseSummary, Long> extractUnreportedHits(); synchronized void addUnreportHits(ResponseSummary responseSummary, Long additionalCount); @Override String toString();  }### Answer:
@Test public void extractEmptyUnreportedHits() { Map<ResponseSummary, Long> entries = testee.extractUnreportedHits(); assertTrue(entries.isEmpty()); }