function testReadUrlsFromFrameInFocus()
 {
     $frame1 = new MockSimplePage();
     $frame1->setReturnValue('getAbsoluteUrls', array('a'));
     $frame1->setReturnValue('getRelativeUrls', array('r'));
     $frame1->setReturnValue('getUrlsByLabel', array(new SimpleUrl('l')));
     $frame1->setReturnValue('getUrlById', new SimpleUrl('i'));
     $frame2 = new MockSimplePage();
     $frame2->expectNever('getAbsoluteUrls');
     $frame2->expectNever('getRelativeUrls');
     $frame2->expectNever('getUrlsByLabel');
     $frame2->expectNever('getUrlById');
     $frameset = new SimpleFrameset(new MockSimplePage());
     $frameset->addFrame($frame1, 'A');
     $frameset->addFrame($frame2, 'B');
     $frameset->setFrameFocus('A');
     $this->assertIdentical($frameset->getAbsoluteUrls(), array('a'));
     $this->assertIdentical($frameset->getRelativeUrls(), array('r'));
     $expected = new SimpleUrl('l');
     $expected->setTarget('A');
     $this->assertIdentical($frameset->getUrlsByLabel('label'), array($expected));
     $expected = new SimpleUrl('i');
     $expected->setTarget('A');
     $this->assertIdentical($frameset->getUrlById(99), $expected);
 }