public function shouldGetBranches()
{
$expectedArray = array(array('name' => 'master'), array('name' => 'develop'));
$api = $this->getApiMock();
$api->expects($this->once())->method('get')->with('projects/1/repository/branches')->will($this->returnValue($expectedArray));
$this->assertEquals($expectedArray, $api->branches(1));
}