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