func (c *MockResource) GenesisBlockFromOrderer(channelName string, orderer fab.Orderer) (*common.Block, error) {
	return NewSimpleMockBlock(), nil
}
GenesisBlockFromOrderer returns the genesis block from the defined orderer that may be
used in a join request
package mocks
import (
	"bytes"
	fab "github.com/hyperledger/fabric-sdk-go/api/apifabclient"
	"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/common"
	pb "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/peer"
	"github.com/pkg/errors"
)
type MockResource struct {
	errorScenario bool
}
func NewMockInvalidResource() *MockResource {
	c := &MockResource{errorScenario: true}
	return c
}
func NewMockResource() *MockResource {
	return &MockResource{}
}
func (c *MockResource) ExtractChannelConfig(configEnvelope []byte) ([]byte, error) {
	if bytes.Compare(configEnvelope, []byte("ExtractChannelConfigError")) == 0 {
		return nil, errors.New("Mock extract channel config error")
	}
	return configEnvelope, nil
}
func (c *MockResource) SignChannelConfig(config []byte, signer fab.IdentityContext) (*common.ConfigSignature, error) {
	if bytes.Compare(config, []byte("SignChannelConfigError")) == 0 {
		return nil, errors.New("Mock sign channel config error")
	}
	return nil, nil
}
func (c *MockResource) CreateChannel(request fab.CreateChannelRequest) (fab.TransactionID, error) {
	if c.errorScenario {
		return fab.TransactionID{}, errors.New("Create Channel Error")
	}
	return fab.TransactionID{}, nil
}
func (c *MockResource) QueryChannels(peer fab.ProposalProcessor) (*pb.ChannelQueryResponse, error) {
	return nil, errors.New("Not implemented yet")
}