'Test create_cloned_volume_with_exception.'

@mock.patch.object(utils, 'brick_get_connector_properties')
@mock.patch.object(vol_utils, 'copy_volume')
def test_create_cloned_volume_with_exception(self, mock_copy_volume, mock_brick_get):

    mock_brick_get.return_value = CONNECTOR
    mock_copy_volume.return_value = None
    self.driver.terminate_connection = mock.Mock()
    self.driver.client = FakeKrestException()
    self.assertRaises(exception.KaminarioCinderDriverException, self.driver.create_cloned_volume, self.vol, self.vol)
