code: func NewMockChannel(channelID string) (*Channel, error) {
  
  	ctx := &mockClientContext{
  		Providers:       NewMockProviderContext(),
  		SigningIdentity: mspmocks.NewMockSigningIdentity("user", "Org1MSP"),
  	}
  
  	// Set up mock channel service
  	chProvider, err := NewMockChannelProvider(ctx)
  	if err != nil {
  		return nil, errors.WithMessage(err, "new mock channel provider failed")
  	}
  	channelService, err := chProvider.ChannelService(ctx, channelID)
  	if err != nil {
  		return nil, errors.WithMessage(err, "failed to create mock channel service")
  	}
  
  	peer := NewMockPeer("Peer1", "example.com")
  
  	channelService.(*MockChannelService).SetDiscovery(NewMockDiscoveryService(nil, peer))
  	channelService.(*MockChannelService).SetSelection(NewMockSelectionService(nil, peer))
  
  	channel := &Channel{
  		Client:         ctx,
  		channelService: channelService,
  		channelID:      channelID,
  	}
  
  	return channel, nil
  }
docs: //NewMockChannel creates new mock channel