You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: verifyqueue_test.go
    path of file: ./repos/storj/satellite/satellitedb
    
    the code of the file until where you have to start completion: // Copyright (C) 2022 Storj Labs, Inc.
// See LICENSE for copying information.

package satellitedb_test

import (
	"math/rand"
	"sort"
	"testing"
	"time"

	"github
    
func TestMultipleBatches(t *testing.T) {
	satellitedbtest.Run(t, func(ctx *testcontext.Context, t *testing.T, db satellite.DB) {
		verifyQueue := db.VerifyQueue()

		// make a list of segments, and push them in batches
		const (
			numSegments = 20
			batchSize   = 5
		)
		segments := make([]audit.Segment, numSegments)
		for i := range segments {
			segments[i] = audit.Segment{
				StreamID:      testrand.UUID(),
				Position:      metabase.SegmentPositionFromEncoded(rand.Uint64()),
				EncryptedSize: rand.Int31(),
			}
		}

		err := verifyQueue.Push(ctx, segments, batchSize)
		require.NoError(t, err)

		// verify that all segments made it to the db
		sort.Sort(audit.ByStreamIDAndPosition(segments))

		for i := range segments {
			gotSegment, err := verifyQueue.Next(ctx)
			require.NoError(t, err)
			require.Equal(t, segments[i], gotSegment)
		}
	})
}