}
public static void login(UserCredentials credentials, NetworkManager networkManager, File root)
throws NoPeerConnectionException {
SessionParameters sessionParameters = new SessionParameters();
sessionParameters.setFileConfig(new TestFileConfiguration());
sessionParameters.setRoot(root.toPath());
sessionParameters.setProfileManager(new UserProfileManager(networkManager.getDataManager(), credentials));
IProcessComponent process = ProcessFactory.instance().createLoginProcess(credentials, sessionParameters,
networkManager);
executeProcess(process);