TestUserProfileTask userProfileTask = new TestUserProfileTask();
KeyPair key = EncryptionUtil.generateRSAKeyPair(H2HConstants.KEYLENGTH_USER_KEYS);
NetworkManager node = network.get(random.nextInt(networkSize));
PublicKeyManager publicKeyManager = new PublicKeyManager(userId, key, node.getDataManager());
node.setSession(new H2HSession(new UserProfileManager(node.getDataManager(), new UserCredentials(userId, "password",
"pin")), publicKeyManager, new DownloadManager(node.getDataManager(), node.getMessageManager(),
publicKeyManager, config), config, FileTestUtil.getTempDirectory().toPath()));
// IGetUserProfileTaskContext context = new SimpleGetUserProfileTaskContext();
// HybridEncryptedContent encrypted = H2HEncryptionUtil.encryptHybrid(userProfileTask,
// key.getPublic());