@Test
public void testDoAction_copyResource_dryRun() throws PersistenceException, RepositoryException {

    CopyResourceToRelativePath copyAction = new CopyResourceToRelativePath("to/relative", "newName", contextMock);
    when(valueMapMock.get(JcrConstants.JCR_PRIMARYTYPE, String.class)).thenReturn(JcrConstants.NT_UNSTRUCTURED);
    when(contextMock.isDryRun()).thenReturn(true);
    copyAction.doAction(resourceMock);
    verify(workspaceMock, never()).copy(anyString(), anyString());
}