code: func NewMockLocalContext(client *MockContext, discoveryProvider fab.LocalDiscoveryProvider) *LocalContext {
  	var localDiscovery fab.DiscoveryService
  	if discoveryProvider != nil {
  		var err error
  		localDiscovery, err = discoveryProvider.CreateLocalDiscoveryService(client.Identifier().MSPID)
  		if err != nil {
  			panic(fmt.Sprintf("error creating local discovery service: %s", err))
  		}
  
  	}
  
  	return &LocalContext{
  		MockContext:    client,
  		localDiscovery: localDiscovery,
  	}
  }
docs: // NewMockLocalContext creates new mock local context