@Test
public void doAction_pageNotFound() throws PersistenceException {

    when(pageManager.getContainingPage(resource)).thenReturn(null);
    String result = action.doAction(resource);
    assertTrue(result.contains("Unable to find a page"));
}