func NewMockOffLedgerClient() *MockOffLedgerClient {
	return &MockOffLedgerClient{
		m:       make(map[string]map[string][]byte),
		qr:      make(map[string][]*queryresult.KV),
		putErrs: make(map[string]error),
		getErrs: make(map[string]error),
	}
}
NewMockOffLedgerClient creates a mock off-ledger client
package mocks
import (
	"sync"
	"github.com/hyperledger/fabric-protos-go/ledger/queryresult"
	commonledger "github.com/hyperledger/fabric/common/ledger"
	"github.com/trustbloc/fabric-peer-ext/pkg/collections/client"
)
const (
	defaultQueryResultsKey = ""
)
type MockOffLedgerClient struct {
	sync.RWMutex
	m       map[string]map[string][]byte
	qr      map[string][]*queryresult.KV
	PutErr  error
	GetErr  error
	putErrs map[string]error
	getErrs map[string]error
}