public function shouldUpdateGroup()
{
$expectedArray = array('id' => 3, 'name' => 'Group name', 'path' => 'group-path');
$api = $this->getApiMock();
$api->expects($this->once())->method('put')->with('groups/3', array('name' => 'Group name', 'path' => 'group-path'))->will($this->returnValue($expectedArray));
$this->assertEquals($expectedArray, $api->update(3, array('name' => 'Group name', 'path' => 'group-path')));
}