Jarzynski equality for the Jepsen gas