public function testCanFormatAStatsModel($images, $users, $bytes, $customStats, $expectedJson)
{
$model = $this->getMock('Imbo\\Model\\Stats');
$model->expects($this->once())->method('getNumImages')->will($this->returnValue($images));
$model->expects($this->once())->method('getNumUsers')->will($this->returnValue($users));
$model->expects($this->once())->method('getNumBytes')->will($this->returnValue($bytes));
$model->expects($this->once())->method('getCustomStats')->will($this->returnValue($customStats));
$this->assertSame($this->formatter->format($model), $expectedJson);
}