store.addUser(store.createUserObject("", "", true)); } catch (IOException ex) { assertSecurityException(ex, USERNAME_REQUIRED); store.addUser(store.createUserObject("user1", "abc", true)); store.addGroup(store.createGroupObject("group1", true)); assertEquals(1, store.getUsers().size()); store.addUser(store.createUserObject("user1", "abc", true)); } catch (IOException ex) { assertSecurityException(ex, USER_ALREADY_EXISTS_$1, "user1"); store.updateUser(store.createUserObject("user1", "abc", false)); store.updateGroup(store.createGroupObject("group1", false)); store.updateUser(store.createUserObject("user1xxxx", "abc", true)); } catch (IOException ex) { assertSecurityException(ex, USER_NOT_FOUND_$1, "user1xxxx"); failed = false; try { store.associateUserToGroup(store.createUserObject("xxx", "abc", true), group1); } catch (IOException ex) { assertSecurityException(ex, USER_NOT_FOUND_$1, "xxx"); store.getGroupsForUser(store.createUserObject("xxx", "abc", true)); } catch (IOException ex) { assertSecurityException(ex, USER_NOT_FOUND_$1, "xxx");