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: rabbitmq_test.go
    path of file: ./repos/testcontainers-go/modules/rabbitmq
    
    the code of the file until where you have to start completion: package rabbitmq_test

import (
	"context"
	"fmt"
	"io"
	"strings"
	"testing"

	amqp "github.com/rabbitmq/amqp091-go"

	"github.com/testcontainers/testcontainers-go"
	"github.com/testcontainers/testcontainers-go/modules/rabbitmq"
)

func TestRunContainer_connectUsingAmqp(t *testing.T) {
	ctx := context.Background()

	rabbitmqContainer, err := rabbitmq.RunC
    
func assertEntity(t *testing.T, container testcontainers.Container, listCommand string, entities ...string) bool {
	t.Helper()

	ctx := context.Background()

	cmd := []string{"rabbitmqadmin", "list", listCommand}

	_, out, err := container.Exec(ctx, cmd)
	if err != nil {
		t.Fatal(err)
	}

	check, err := io.ReadAll(out)
	if err != nil {
		t.Fatal(err)
	}

	for _, e := range entities {
		if !strings.Contains(string(check), e) {
			return false
		}
	}

	return true
}