### Question:
LocalRrCache implements Storage, Debuggable { @Override public List<Integer> getCacheIds() { List<Integer> ids = new ArrayList<>(); for (CacheElement cacheElement : cacheStorage) { if (cacheElement != null) { ids.add(cacheElement.getId()); } } return ids; } LocalRrCache(Storage backendStore, int cacheSize); @Override boolean store(int id, String value); @Override String load(int id); @Override ClusterStatus getCurrentClusterStatus(); @Override boolean getCurrentNodeStatus(InetAddress ia); @Override List<Integer> getCacheIds();  }### Answer:
@Test public void testStorage() { storeAndLoad(1000); storeAndLoad(1001); storeAndLoad(1002); Assertions.assertEquals(Arrays.asList(1000, 1001, 1002), localRrCache.getCacheIds()); storeAndLoad(1003); storeAndLoad(1004); Assertions.assertEquals(Arrays.asList(1000, 1001, 1002, 1003, 1004), localRrCache.getCacheIds()); for (int i = 1000; i < 1010; i++) { storeAndLoad(i); } }