privilege2.setCreateTime(System.currentTimeMillis());
privilege2.setPrivilegeName(SentryStore.constructPrivilegeName(privilege2));
assertEquals(seqId + 4, sentryStore.alterSentryRoleGrantPrivilege(roleName2, privilege2)
.getSequenceId());
Set<TSentryGroup> groups = Sets.newHashSet();
TSentryGroup group = new TSentryGroup();
group.setGroupName(groupName1);
groups.add(group);
assertEquals(seqId + 5, sentryStore.alterSentryRoleAddGroups(grantor,
roleName1, groups).getSequenceId());
groups.clear();
group = new TSentryGroup();
group.setGroupName(groupName2);
groups.add(group);
// group 2 has both roles 1 and 2
assertEquals(seqId + 6, sentryStore.alterSentryRoleAddGroups(grantor,
roleName1, groups).getSequenceId());
assertEquals(seqId + 7, sentryStore.alterSentryRoleAddGroups(grantor,