/**
* Test Add Permission to Group.
*/
@Test
public void testAddPermissionToGroup(){
final Permission editor = createPermission("editor");
final Permission admon = createPermission("publisher");
final Permission permission = createPermission("administrator");
final Group group = createGroups("group 1");
group.getPermissions().add(editor);
group.getPermissions().add(admon);
group.getPermissions().add(permission);
getGroup().saveOrUpdate(group);