String contentKey = NetworkTestUtil.randomString();
Parameters parameters = new Parameters().setLocationKey(nodeB.getNodeId()).setContentKey(contentKey);
// check if selected location is empty
FutureGet futureGet = nodeA.getDataManager().getUnblocked(parameters);
futureGet.awaitUninterruptibly();
assertNull(futureGet.getData());
// create a message with target node B
final TestDirectMessage message = new TestDirectMessage(nodeB.getNodeId(), nodeB.getConnection()
.getPeer().getPeerAddress(), contentKey, new H2HTestData(data), false);