AccessRightsForm resourceForm = (AccessRightsForm) getActionForm();
updateInvalidResourceProperties(resourceForm);
StrutsExecutionStep executionStep = new StrutsExecutionStep(getRequestPath(), getInitialRequestPath());
executionStep.addRequestParameter("actionTarget", "commit");
executionStep.addMessage(getSavedMessage());
executeStep(executionStep);
AccessRights byId = getResourceById(resource.getResourceId());
assertEquals(resourceForm.getResource(), byId);
assertNotSame("Invalid permission added should not match", resource.getAccessRights(), byId.getAccessRights());