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

    when(resource.getName()).thenReturn(NEW_NAME);
    RenameResource action = new RenameResource(resolver, NEW_NAME);
    action.doAction(resource);
    verify(session, never()).move(Mockito.anyString(), Mockito.anyString());
}