mm.put("key2", "value2");
mm.put("key3", "value3");
//contains key value
final SimpleClient client = getClient();
client.send(new KeyBasedContainsRequest(name, ss.toData("key1"), ss.toData("value1")));
boolean result = (Boolean) client.receive();
assertTrue(result);
//not contains key value
client.send(new KeyBasedContainsRequest(name, ss.toData("key1"), ss.toData("value2")));
result = (Boolean) client.receive();
assertFalse(result);
//contains key
client.send(new KeyBasedContainsRequest(name, ss.toData("key2"), null));
result = (Boolean) client.receive();
assertTrue(result);
//not contains key
client.send(new KeyBasedContainsRequest(name, ss.toData("key4"), null));
result = (Boolean) client.receive();
assertFalse(result);
//contains value
client.send(new ContainsRequest(name, ss.toData("value3")));