boolean isRegistered = network.get(i).getUserManager().isRegistered(userId);
assertFalse(isRegistered);
}
// registering from random node (await)
IUserManager userManager = network.get(new Random().nextInt(network.size())).getUserManager();
userManager.configureAutostart(true);
userManager.register(userCredentials).await();
// all nodes must have same result: true
for (int i = 0; i < network.size(); i++) {
boolean isRegistered = network.get(i).getUserManager().isRegistered(userId);
assertTrue(isRegistered);