@Test
public void doAction_success() throws PersistenceException, ReplicationException, AecuException {

    String result = action.doAction(resource);
    assertTrue(result.contains("Replicated page tree"));
    assertTrue(result.contains("2 pages"));
    verify(replicator, times(1)).replicate(session, ReplicationActionType.ACTIVATE, PATH);
    verify(replicator, times(1)).replicate(session, ReplicationActionType.ACTIVATE, SUBPATH);
}