public function shouldGetTree()
{
$expectedArray = array(array('name' => 'file1.txt'), array('name' => 'file2.csv'));
$api = $this->getApiMock();
$api->expects($this->once())->method('get')->with('projects/1/repository/tree')->will($this->returnValue($expectedArray));
$this->assertEquals($expectedArray, $api->tree(1));
}