'Tests managing a volume with no mappings.
This test case attempts to manage an existing volume by UID, and
we expect it to succeed.  We verify that the backend volume was
renamed to have the name of the Cinder volume that we asked for it to
be associated with.'

def test_manage_existing_good_uid_not_mapped(self):

    (_volume, uid) = self._create_volume_and_return_uid('manage_test')
    new_volume = self._generate_vol_info()
    ref = {'source-id': uid}
    size = self.driver.manage_existing_get_size(new_volume, ref)
    self.assertEqual(10, size)
    self.driver.manage_existing(new_volume, ref)
    uid_of_new_volume = self._get_vdisk_uid(new_volume['name'])
    self.assertEqual(uid, uid_of_new_volume)
