public function testCanLoadStats()
{
$this->database->expects($this->at(0))->method('getNumImages')->will($this->returnValue(1));
$this->database->expects($this->at(1))->method('getNumBytes')->will($this->returnValue(1));
$this->database->expects($this->at(2))->method('getNumImages')->will($this->returnValue(2));
$this->response->expects($this->once())->method('setModel')->with($this->isInstanceOf('Imbo\\Model\\Stats'))->will($this->returnSelf());
$this->listener->loadStats($this->event);
}