'Error on manage with bad reference.
This test case attempts to manage an existing volume but passes in
a bad reference that the Storwize driver doesn\'t understand.  We
expect an exception to be raised.'

def test_manage_existing_bad_ref(self):

    volume = self._generate_vol_info()
    ref = {}
    self.assertRaises(exception.ManageExistingInvalidReference, self.driver.manage_existing, volume, ref)
    volume = self._generate_vol_info()
    ref = {'source-id': 'bad_uid'}
    self.assertRaises(exception.ManageExistingInvalidReference, self.driver.manage_existing, volume, ref)
    volume = self._generate_vol_info()
    ref = {'source-name': 'bad_name'}
    self.assertRaises(exception.ManageExistingInvalidReference, self.driver.manage_existing, volume, ref)
