public function testCanFormatAGroupModel()
{
$name = 'group';
$resources = ['user.get', 'user.head'];
$model = $this->getMock('Imbo\\Model\\Group');
$model->expects($this->once())->method('getName')->will($this->returnValue($name));
$model->expects($this->once())->method('getResources')->will($this->returnValue($resources));
$this->assertSame('{"name":"group","resources":["user.get","user.head"]}', $this->formatter->format($model));
}