Farmer in court over ID switch