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: componentrouterservice_test.go
    path of file: ./repos/jackal/pkg/cluster/server
    
    the code of the file until where you have to start completion: // Copyright 2022 The jackal Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, softwar
    
func TestComponentRouterService_Route(t *testing.T) {
	// given
	csMock := &componentsMock{}

	var recvStanza stravaganza.Stanza
	csMock.ProcessStanzaFunc = func(ctx context.Context, stanza stravaganza.Stanza) error {
		recvStanza = stanza
		return nil
	}

	srv := &componentRouterService{comps: csMock}

	// when
	msg := testMessageStanza()

	_, _ = srv.Route(context.Background(), &pb.ComponentRouteRequest{Stanza: msg.Proto()})

	// then
	require.Len(t, csMock.ProcessStanzaCalls(), 1)
	require.Equal(t, msg.String(), recvStanza.String())
}