}
}
private static void checkIndexes(File fileAtA, File fileAtB, File movedFile, boolean userA)
throws GetFailedException, NoSessionException {
UserProfile userProfileA = network.get(0).getSession().getProfileManager()
.getUserProfile(UUID.randomUUID().toString(), false);
Path relativePathA = rootA.toPath().relativize(fileAtA.toPath());
Index indexA = userProfileA.getFileByPath(relativePathA);
UserProfile userProfileB = network.get(1).getSession().getProfileManager()
.getUserProfile(UUID.randomUUID().toString(), false);
Path relativePathB = rootB.toPath().relativize(fileAtB.toPath());
Index indexB = userProfileB.getFileByPath(relativePathB);
// should have been deleted
Assert.assertNull(indexA);
Assert.assertNull(indexB);