An experimental test of the Jarzynski equality in a mechanical experiment