The authors have measured by laser spectroscopy the energy of interaction between a sodium atom and its images in the walls of a micron-sized cavity. This cavity-QED study is the first direct quantitative test of the Lennard-Jones van der Waals interaction as a function of controlled atom-surface separation and mean-square electric dipole moment