'Test case extend volume to the given size in GB.'

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

    mock_mdp.side_effect = exception.UnableToProcessHyperScaleCmdOutput(cmd_out='mock    error')
    self.assertRaises(exception.VolumeDriverException, self.driver.extend_volume, _stub_volume(), 256)
