public function testCanFormatAMetadataModel()
{
$metadata = ['some key' => 'some value', 'some other key' => 'some other value'];
$model = $this->getMock('Imbo\\Model\\Metadata');
$model->expects($this->once())->method('getData')->will($this->returnValue($metadata));
$json = $this->formatter->format($model);
$data = json_decode($json, true);
$this->assertSame($data, $metadata);
}