@Test
public void testMapContainsKeyValue() throws IOException {
int size = 100;
final SimpleClient client = getClient();
client.send(new MapContainsKeyRequest(mapName, TestUtil.toData("-")));
assertFalse((Boolean) client.receive());
for (int i = 0; i < size; i++) {
getMap().put("-" + i, "-" + i);
}
for (int i = 0; i < size; i++) {
client.send(new MapContainsKeyRequest(mapName, TestUtil.toData("-" + i)));
assertTrue((Boolean) client.receive());
}
client.send(new MapContainsKeyRequest(mapName, TestUtil.toData("-")));
assertFalse((Boolean) client.receive());
client.send(new MapContainsValueRequest(mapName, TestUtil.toData("-")));
assertFalse((Boolean) client.receive());