}
map1.evictAll();
assertOpenEventually(countDownLatch);
assertEquals(0, countDownLatch.getCount());
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(0, map1.getLocalMapStats().getHeapCost());
}
});
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(0, map2.getLocalMapStats().getHeapCost());
}
});