Assert.assertTrue(indexNew.getProtectionKeys().getPrivate()
.equals(userProfileA.getProtectionKeys().getPrivate()));
Assert.assertTrue(indexNew.getProtectionKeys().getPublic()
.equals(userProfileA.getProtectionKeys().getPublic()));
// check write access
Assert.assertTrue(indexNew.canWrite());
// check user permissions
Set<String> users = indexNew.getCalculatedUserList();
Assert.assertEquals(1, users.size());
Assert.assertTrue(users.contains(userProfileA.getUserId()));
// check user permissions in case of a folder