assertSame( uiParent, log.get( 1 ) );
}
private WebPage createWebPage( boolean topLevel ) {
WebPage page = mock( WebPage.class );
PageDescriptor descriptor = mock( PageDescriptor.class );
doReturn( "foo" ).when( descriptor ).getId();
doReturn( Boolean.valueOf( topLevel ) ).when( descriptor ).isTopLevel();
when( page.getDescriptor() ).thenReturn( descriptor );
return page;
}