assertEquals(entry.getKey(), peer);
assertTrue(entry.getValue().size() == 1);
BSPMessageBundle bundle = new BSPMessageBundle();
for (BSPMessage msg : entry.getValue()) {
bundle.addMessage(msg);
}
messageManager.transfer(peer, bundle);
messageManager.clearOutgoingQueues();