Source: Koemans, T. S., et al. Drosophila Courtship Conditioning As a Measure of Learning and Memory. J. Vis. Exp. (2017).
This video describes a classical conditioning assay that tests learning and memory in Drosophila, called courtship conditioning. The assay is based on the reduction of male courtship after experiencing a rejection by a non-receptive premated female. The example protocol shows a setup for the procedure that can be used to assess short- and long-term memory.

