public function shouldCreateBranch()
{
$expectedArray = array('name' => 'feature');
$api = $this->getApiMock();
$api->expects($this->once())->method('post')->with('projects/1/repository/branches', array('branch_name' => 'feature', 'ref' => 'master'))->will($this->returnValue($expectedArray));
$this->assertEquals($expectedArray, $api->createBranch(1, 'feature', 'master'));
}