/**
  * Tests the _byMap method
  *
  * @covers ::_byMap
  * @return void
  */
 public function testByMap()
 {
     $this->page = $this->getMock('ExamplePagePublicElementMethods', null, array($this->test));
     $this->test->expects($this->once())->method('byCssSelector')->with($this->equalTo('field_2'))->will($this->returnValue('element'));
     $locator = $this->page->byMap('fieldTwo');
     $expected = 'element';
     $this->assertEquals($expected, $locator);
 }