@Test
public void testPutIfAbsent() throws IOException {
final IMap map = getMap();
map.put(1, 3);
final SimpleClient client = getClient();
client.send(new MapPutIfAbsentRequest(mapName, TestUtil.toData(1), TestUtil.toData(5), ThreadUtil.getThreadId()));
assertEquals(3, client.receive());
client.send(new MapPutIfAbsentRequest(mapName, TestUtil.toData(2), TestUtil.toData(5), ThreadUtil.getThreadId()));
assertEquals(null, client.receive());
assertEquals(5, map.get(2));
}