Generation and detection of photons in a cavity with a resonantly oscillating boundary.