A resonant test-field model of gravity waves