def test_queue_new_generation(self):
        """When a new volume generation."""
        vol_id = uuid.uuid4()
        with fsync_commit():
            self.gw.queue_new_generation(1, vol_id, 3)
        self.assertEqual(self.dummy_notifier.notifications, [
            VolumeNewGeneration(1, vol_id, 3, self.gw.session_id)
        ])