A man whose conviction was thrown out amidst the Dookhan drug lab scandal was not able to recover court costs and probation fees. Because the case was sent for retrial and  dismissed, rather than being overturned on appeal, he cannot get the court costs refunded. The court also determined that because probation fees were paying for a government service and were not a penalty, the man could not get his probation fees returned to him.

http://www.bostonglobe.com/metro/2016/11/25/sjc/9yZgWzrC1MpCp8AHLytIcN/story.html