.build();
for (int i = 0; i < 5; i++)
{
ChannelFutureListener listener = Whitebox.getInternalState(node, "inAvailableCloseListener", RiakNode.class);
listener.operationComplete(future);
}
NodeStateListener listener = mock(NodeStateListener.class);
node.addStateListener(listener);
Whitebox.setInternalState(node, "state", State.RUNNING);