Page page1 = PageTest.randomPage();
page1.setUrl("http://example.com/test0=0");
IRemotePageCatcher stubCatcher= distributor.getCatcher(page1);
stubCatcher.addPage(page1);
PageDB db = localCatcher.getCatch();
db.open(PageDB.READ);
Iterator<Page> pages = db.iterator();
assertTrue("The page sent through rmi did not survive the adventure.", pages.hasNext());
Page page2 = pages.next();
assertTrue("The page has been changed by the trip through rmi:\n 1: "+page1+"\n 2: "+page2, page1.equals(page2));
assertFalse("Sent one page through rmi and more than one came out the other end.", pages.hasNext());