"Experiments have shown rats to forgo food to the point of starvation in order to work for brain stimulation or intravenous cocaine when both food and stimulation are offered concurrently for a limited time each day."
The quote I cited was about heroin in particular; I don't know the state of anti-cocaine methods and the article doesn't go into it. It only states that apparently we have a perfectly good method of curing heroin addiction that's not being used for pretty stupid reasons.