verify(cluster, atLeastOnce()).allocateRefs(anyInt());
if (hasServer)
cache.receive(Message.ALLOCED_REF(Message.ALLOC_REF(Comm.SERVER, DEFAULT_ALLOC_COUNT), 300, 10));
else
listener.refsAllocated(300, 10);
assertThat(alloc.getFuture().isDone(), is(false));
if (hasServer)
cache.receive(Message.ALLOCED_REF(Message.ALLOC_REF(Comm.SERVER, DEFAULT_ALLOC_COUNT), 400, 50));