public function testCanFormatAnArrayModelWithNestedArrays()
{
$data = ['key' => ['sub' => ['subsub' => 'value']], 'key2' => 'value'];
$model = $this->getMock('Imbo\\Model\\ArrayModel');
$model->expects($this->once())->method('getData')->will($this->returnValue($data));
$xml = $this->formatter->format($model);
$this->assertXPathMatches('/imbo/key/sub/subsub[.="value"]', $xml);
$this->assertXPathMatches('/imbo/key2[.="value"]', $xml);
}