A Mesa man has been handed a five-year prison term after admitting to an arson attack on a local Tesla dealership.