@Test
public void doAction_successDryRun() throws PersistenceException, WCMException {

    when(context.isDryRun()).thenReturn(true);
    String result = action.doAction(resource);
    assertTrue(result.contains("Deleted page"));
}