/**
  * Tests prepareForAuthentication when falls through events.
  *
  * @param mixed $identity
  * @param bool  $expected
  *
  * @dataProvider identityProvider
  * @covers ZfcUser\Authentication\Adapter\AdapterChain::prepareForAuthentication
  */
 public function testPrepareForAuthentication($identity, $expected)
 {
     $result = $this->setUpPrepareForAuthentication();
     $result->expects($this->once())->method('stopped')->will($this->returnValue(false));
     $this->event->expects($this->once())->method('getIdentity')->will($this->returnValue($identity));
     $this->assertEquals($expected, $this->adapterChain->prepareForAuthentication($this->request), 'Asserting prepareForAuthentication() returns true');
 }