/**
  * @covers Zend\Db\RowGateway\RowGateway::populate
  * @covers Zend\Db\RowGateway\RowGateway::rowExistsInDatabase
  */
 public function testPopulate()
 {
     $this->rowGateway->populate(array('id' => 5, 'name' => 'foo'));
     $this->assertEquals(5, $this->rowGateway['id']);
     $this->assertEquals('foo', $this->rowGateway['name']);
     $this->assertFalse($this->rowGateway->rowExistsInDatabase());
     $this->rowGateway->populate(array('id' => 5, 'name' => 'foo'), true);
     $this->assertTrue($this->rowGateway->rowExistsInDatabase());
 }