instances[0].getMultiMap(name).put("key4", "val4");
instances[0].getMultiMap(name).put("key5", "val5");
instances[0].getMultiMap(name).put("key6", "val6");
instances[0].getMultiMap(name).put("key7", "val7");
instances[0].getMultiMap(name).put("key8", "val8");
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
instances[0].getMultiMap(name).localKeySet().containsAll(keys);
}
});
if (keys.size() != 0) {
instances[0].getMultiMap(name).remove(keys.iterator().next());
}
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
instances[0].getMultiMap(name).localKeySet().containsAll(keys);
}
});