// Clear the list of watched documents and spaces
getUtil().updateObject("XWiki", this.profilePage.getUsername(), "XWiki.WatchListClass", 0, "spaces", "",
"documents", "");
// Watch Test.TestWatchThisPage
ViewPage page = getUtil().createPage("Test", "TestWatchThisPage", "TestWatchThisPage ui", null);
page.watchDocument();
// Watch TestWatchWholeSpace
page = getUtil().createPage("TestWatchWholeSpace", "Test1", "TestWatchWholeSpace ui", null);
page.watchSpace();
// Verify that the watched page & space are present in the watchlist manager
this.watchlistPage.gotoPage();
// TODO: use LiveTableElement instead but does not seems to work...
// LiveTableElement watchlist = this.watchlistPage.getWatchList();