* assuming you take notificationMessage to UI mapping:

verifyUndoSucceeded() {
    waitForElementByElement(notificationMessage);
    String messageText = notificationMessage.getText();
    Assertion.assertEquals(notificationMsg, "This page has been restored.");
}

and that's all you need to do