Hoopeston man gets four years for fraudulent ATM transaction