@Test
public void testUpdatePermissions_shouldUpdatePermission() throws LdapInvalidAttributeValueException,
    NoSuchNodeException, MissingParentException {

    Permission permission = createTestPermission();
    ldapService.updatePermissions(Lists.newArrayList(permission));
    permission.setComponentName(permission.getComponentName() + "new");
    permission.setAction(permission.getAction() + "new");
    ldapService.updatePermissions(Lists.newArrayList(permission));
    assertCorrectlyStored(permission);
}