Testing the thermodynamic approach to granular matter with a numerical model of a decisive experiment