public function shouldProtectBranch()
{
$expectedArray = array('name' => 'master');
$api = $this->getApiMock();
$api->expects($this->once())->method('put')->with('projects/1/repository/branches/master/protect', array('developers_can_push' => false, 'developers_can_merge' => false))->will($this->returnValue($expectedArray));
$this->assertEquals($expectedArray, $api->protectBranch(1, 'master'));
}