store.addGroup(store.createGroupObject(null, true)); } catch (IOException ex) { assertSecurityException(ex, GROUPNAME_REQUIRED); store.addGroup(store.createGroupObject("group1", true)); assertEquals(1, store.getUsers().size()); assertEquals(1, store.getUserCount()); store.addGroup(store.createGroupObject("group1", true)); } catch (IOException ex) { assertSecurityException(ex, GROUP_ALREADY_EXISTS_$1, "group1"); store.updateGroup(store.createGroupObject("group1", false)); store.updateGroup(store.createGroupObject("group1xxx", true)); } catch (IOException ex) { assertSecurityException(ex, GROUP_NOT_FOUND_$1, "group1xxx"); store.associateUserToGroup(user1, store.createGroupObject("yyy", true)); } catch (IOException ex) { assertSecurityException(ex, GROUP_NOT_FOUND_$1, "yyy"); store.getUsersForGroup(store.createGroupObject("yyy", true)); } catch (IOException ex) { assertSecurityException(ex, GROUP_NOT_FOUND_$1, "yyy"); store.disAssociateUserFromGroup(user1, store.createGroupObject("yyy", true)); } catch (IOException ex) { assertSecurityException(ex, GROUP_NOT_FOUND_$1, "yyy");