'Array returns error that the lun already exists.'

def test_create_volume_from_snapshot_fails(self):

    vdev_id = 11111
    lun_info_response = {'subType': 'THICK', 'virtualDeviceID': vdev_id}
    response = {'success': False, 'msg': 'Duplicate    Virtual    Device    name.    Error:    0x90010022'}
    compressed_snap_id = 'abcdabcd1234abcd1234abcdeffedcbb'
    failure = exception.ViolinBackendErrExists
    conf = {'lun.get_lun_info.return_value': lun_info_response, 'lun.copy_snapshot_to_new_lun.return_value': response}
    self.driver.vmem_mg = self.setup_mock_concerto(m_conf=conf)
    self.driver._send_cmd = mock.Mock(return_value=response)
    self.driver._compress_snapshot_id = mock.Mock(return_value=compressed_snap_id)
    self.driver._get_storage_pool = mock.Mock(return_value=DEFAULT_THICK_POOL)
    self.driver._send_cmd = mock.Mock(side_effect=failure(message='fail'))
    self.assertRaises(failure, self.driver._create_volume_from_snapshot, SNAPSHOT, VOLUME)
