'Test case create snapshot throws exception.'

@mock.patch('cinder.volume.drivers.veritas.utils.message_compute_plane')
@mock.patch('cinder.volume.drivers.veritas.utils.episodic_snap')
@mock.patch('cinder.volume.drivers.veritas.vrtshyperscale.HyperScaleDriver._get_volume_metadata_value')
def test_create_snapshot_with_exception(self, mock_gvmv, mock_es, mock_mcp):

    mock_gvmv.side_effect = VRTSHyperScaleDriverTestCase.gvmv_side_effect
    mock_es_obj = {'payload': {'update': False}}
    mock_es.return_value = mock_es_obj
    mock_mcp.side_effect = exception.UnableToExecuteHyperScaleCmd(cmd_out='mock    error')
    fake_snapshot = _stub_snapshot()
    self.assertRaises(exception.UnableToExecuteHyperScaleCmd, self.driver.create_snapshot, fake_snapshot)
