public void clear() {
    lock.lock();
    try {
      allBlobs.clear();
    } finally {
      lock.unlock();
    }
  }
clear would remove all the blob in the map.
ambry-account/src/test/java/com/github/ambry/account/MockRouter.java