public void testGroupActions() throws Exception {
User user = context.newObject(User.class);
user.setName("test_user");
Group group1 = context.newObject(Group.class);
group1.setName("test_group1");
Group group2 = context.newObject(Group.class);
group2.setName("test_group2");
group1.addToGroupMembers(user);
group2.addToGroupMembers(group1);
group2.getObjectContext().commitChanges();
// Per CAY-1379 removing user and then refetching resulted in a FFE downstream
group1.removeFromGroupMembers(user);
Expression exp = ExpressionFactory.matchExp(Role.ROLE_GROUPS_PROPERTY, group2);
SelectQuery query = new SelectQuery(Group.class, exp);