A prototype of adiabatic cooling