fcc.awaitUninterruptibly();
cc = fcc.channelCreator();
PutBuilder putBuilder = new PutBuilder(recv1, new Number160(33));
putBuilder.domainKey(Number160.createHash("test"));
DataMap dataMap = new DataMap(new Number160(33), Number160.createHash("test"), Number160.ZERO, tmp);
putBuilder.dataMapContent(tmp);
putBuilder.versionKey(Number160.ZERO);
FutureResponse fr = smmSender.put(recv1.peerAddress(), putBuilder, cc);
fr.awaitUninterruptibly();
// get
GetBuilder getBuilder = new GetBuilder(recv1, new Number160(33));
getBuilder.domainKey(Number160.createHash("test"));
getBuilder.contentKeys(tmp.keySet());
getBuilder.versionKey(Number160.ZERO);
fr = smmSender.get(recv1.peerAddress(), getBuilder, cc);
fr.awaitUninterruptibly();
Assert.assertEquals(true, fr.isSuccess());
System.err.println(fr.failedReason());
Message m = fr.responseMessage();
Map<Number640, Data> stored = m.dataMap(0).dataMap();
compare(dataMap.convertToMap640(), stored);
System.err.println("done!");
} finally {
if (cc != null) {
cc.shutdown().awaitListenersUninterruptibly();
}