public void testAddRemovePermission() throws PersistenceException, InterruptedException {
String queueUrl = getQueueUrl(1, USR.USER1);
cqs1.setQueueAttributes(new SetQueueAttributesRequest(queueUrl, attributeParams));
AddPermissionRequest addPermissionRequest = new AddPermissionRequest();
addPermissionRequest.setQueueUrl(queueUrl);
addPermissionRequest.setActions(Arrays.asList("SendMessage"));
addPermissionRequest.setLabel("testLabel");
addPermissionRequest.setAWSAccountIds(Arrays.asList(user1.getUserId(), user2.getUserId()));
cqs1.addPermission(addPermissionRequest);
addPermissionRequest.setLabel("testLabel2");
addPermissionRequest.setActions(Arrays.asList("SendMessage", "GetQueueUrl"));
cqs1.addPermission(addPermissionRequest);
GetQueueAttributesRequest getQueueAttributesRequest = new GetQueueAttributesRequest();
getQueueAttributesRequest.setAttributeNames(Arrays.asList("All"));
getQueueAttributesRequest.setQueueUrl(queueUrl);