@Test
public void doAction() throws PersistenceException, ItemExistsException, PathNotFoundException, VersionException,
        ConstraintViolationException, LockException, RepositoryException {

    RenameResource action = new RenameResource(resolver, NEW_NAME);
    action.doAction(resource);
    verify(session, times(1)).move("/parent/node", "/parent/" + NEW_NAME);
}