fr = smmSender.add(recv1.peerAddress(), addBuilder, cc);
fr.awaitUninterruptibly();
System.err.println(fr.failedReason());
Assert.assertEquals(true, fr.isSuccess());
Number320 key = new Number320(new Number160(33), Number160.createHash("test"));
// Set<Number480> tofetch = new HashSet<Number480>();
Number640 from = new Number640(key, Number160.ZERO, Number160.ZERO);
Number640 to = new Number640(key, Number160.MAX_VALUE, Number160.MAX_VALUE);
SortedMap<Number640, Data> c = storeRecv.subMap(from, to, -1, true);
Assert.assertEquals(1, c.size());
for (Data data : c.values()) {
Assert.assertEquals((Integer) 1, (Integer) data.object());
}
// now add again, but as a list
addBuilder.list();
addBuilder.random(new Random(42));
fr = smmSender.add(recv1.peerAddress(), addBuilder, cc);
fr.awaitUninterruptibly();
System.err.println(fr.failedReason());
Assert.assertEquals(true, fr.isSuccess());
key = new Number320(new Number160(33), Number160.createHash("test"));
// Set<Number480> tofetch = new HashSet<Number480>();
from = new Number640(key, Number160.ZERO, Number160.ZERO);
to = new Number640(key, Number160.MAX_VALUE, Number160.MAX_VALUE);
c = storeRecv.subMap(from, to, -1, true);
Assert.assertEquals(2, c.size());