@Test(expected = AecuException.class)
public void doAction_noPage() throws PersistenceException, AecuException {

    when(pageManager.getContainingPage(resource)).thenReturn(null);
    RenderPageAction action = new RenderPageAction(context, 200, null, null);
    action.doAction(resource);
}