* @throws NoSessionException
* @throws NoPeerConnectionException
*/
@Test
public void notAllClientsAreAlive() throws NoSessionException, NoPeerConnectionException {
Locations fakedLocations = new Locations(userId);
fakedLocations.addPeerAddress(network.get(0).getConnection().getPeer().getPeerAddress());
fakedLocations.addPeerAddress(network.get(1).getConnection().getPeer().getPeerAddress());
// not responding nodes
fakedLocations.addPeerAddress(network.get(4).getConnection().getPeer().getPeerAddress());
fakedLocations.addPeerAddress(network.get(5).getConnection().getPeer().getPeerAddress());
Locations result = runProcessStep(fakedLocations,
isInitialClient(fakedLocations, network.get(0).getConnection().getPeer().getPeerAddress()));
assertEquals(2, result.getPeerAddresses().size());
PeerAddress newClientsEntry = null;
for (PeerAddress address : result.getPeerAddresses()) {
if (address.equals(network.get(0).getConnection().getPeer().getPeerAddress())) {
newClientsEntry = address;
break;
}
}