network = NetworkTestUtil.createNetwork(networkSize);
}
@Test
public void testGetProcessStepSuccess() throws NoPeerConnectionException {
H2HTestData data = new H2HTestData(NetworkTestUtil.randomString());
NetworkManager getter = network.get(0);
NetworkManager holder = network.get(1);
String locationKey = holder.getNodeId();
String contentKey = NetworkTestUtil.randomString();
// put in the memory of 2nd peer
holder.getDataManager()
.putUnblocked(
new Parameters().setLocationKey(holder.getNodeId()).setContentKey(contentKey)
.setData(data)).awaitUninterruptibly();
TestGetProcessStep getStep = new TestGetProcessStep(locationKey, contentKey, getter.getDataManager());
UseCaseTestUtil.executeProcess(getStep);
Assert.assertEquals(data.getTestString(), ((H2HTestData) getStep.getContent()).getTestString());
}