/**
  * Lists the affinity groups associated with the specified subscription.
  * 
  * @return Models\ListAffinityGroupsResult
  * 
  * @see http://msdn.microsoft.com/en-us/library/windowsazure/ee460797.aspx
  */
 public function listAffinityGroups()
 {
     $context = new HttpCallContext();
     $context->setMethod(Resources::HTTP_GET);
     $context->setPath($this->_getAffinityGroupPath());
     $context->addStatusCode(Resources::STATUS_OK);
     $response = $this->sendContext($context);
     $serialized = $this->dataSerializer->unserialize($response->getBody());
     return ListAffinityGroupsResult::create($serialized);
 }