def METHOD_NAME(self):
    # Arrange
    self.hosted_service_name = self.get_resource_name('utsvc')
    self.storage_account_name = self.get_resource_name('utstorage')
    self._create_affinity_group(self.affinity_group_name)
    self.sms.create_hosted_service(
        self.hosted_service_name,
        'affgrptestlabel',
        'affgrptestdesc',
        None,
        self.affinity_group_name)
    self.sms.create_storage_account(
        self.storage_account_name,
        self.storage_account_name + 'desc',
        self.storage_account_name + 'label',
        self.affinity_group_name)
    # Act
    result = self.sms.get_affinity_group_properties(
        self.affinity_group_name)
    # Assert
    self.assertIsNotNone(result)
    self.assertEqual(result.name, self.affinity_group_name)
    self.assertIsNotNone(result.label)
    self.assertIsNotNone(result.description)
    self.assertIsNotNone(result.location)
    self.assertIsNotNone(result.hosted_services[0])
    self.assertEqual(
        result.hosted_services[0].service_name, self.hosted_service_name)
    self.assertEqual(
        result.hosted_services[0].hosted_service_properties.affinity_group,
        self.affinity_group_name)
    # not sure why azure does not return any storage service
    self.assertTrue(len(result.capabilities) > 0)