'Test case throws exception when command failed to execute.'

@mock.patch('cinder.volume.drivers.veritas.utils.message_data_plane')
def test_create_cloned_volume_with_exception(self, mock_mdp):

    vol_a = _stub_volume()
    vol_b = _stub_volume()
    mock_mdp.side_effect = exception.UnableToExecuteHyperScaleCmd(cmd_out='mock    error')
    self.assertRaises(exception.UnableToExecuteHyperScaleCmd, self.driver.create_cloned_volume, vol_b, vol_a)
