code: func NewMockOrderer(url string, broadcastListener chan *fab.SignedEnvelope) *MockOrderer {
  	o := &MockOrderer{
  		OrdererURL:        url,
  		BroadcastListener: broadcastListener,
  		BroadcastErrors:   make(chan error, 100),
  		Deliveries:        make(chan *common.Block, 1),
  		DeliveryErrors:    make(chan error, 1),
  		BroadcastQueue:    make(chan *fab.SignedEnvelope, 100),
  		DeliveryQueue:     make(chan interface{}, 100),
  	}
  
  	if broadcastListener != nil {
  		go broadcast(o)
  	}
  	go delivery(o)
  	return o
  }
docs: // NewMockOrderer ...