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