func (m *MockDCASClient) WithGetError(err error) *MockDCASClient {
	m.errGet = err
	return m
}
WithGetError sets an error for Get operations
package mocks
import (
	"io"
	"io/ioutil"
	"github.com/ipfs/go-cid"
	mh "github.com/multiformats/go-multihash"
	"github.com/trustbloc/fabric-peer-ext/pkg/collections/offledger/dcas"
	dcasclient "github.com/trustbloc/fabric-peer-ext/pkg/collections/offledger/dcas/client"
)
type MockDCASClient struct {
	data               map[string][]byte
	nodes              map[string]*dcasclient.Node
	errPut             error
	errGet, errGetNode error
	panicMessage       string
}
func NewDCASClient() *MockDCASClient {
	return &MockDCASClient{
		data:  make(map[string][]byte),
		nodes: make(map[string]*dcasclient.Node),
	}
}
func (m *MockDCASClient) WithData(key string, value []byte) *MockDCASClient {
	m.data[key] = value
	return m
}
func (m *MockDCASClient) WithNode(key string, node *dcasclient.Node) *MockDCASClient {
	m.nodes[key] = node
	return m
}
func (m *MockDCASClient) WithPutError(err error) *MockDCASClient {
	m.errPut = err
	return m
}