func NewStateDB() *StateDB {
	return &StateDB{
		state:        make(map[string]map[string][]byte),
		queryResults: make(map[string][]*statedb.VersionedKV),
		itProvider:   NewKVIterator,
	}
}
NewStateDB returns a new mock state DB
package mocks
import (
	"sort"
	"strings"
	"github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb"
)
type StateDB struct {
	state             map[string]map[string][]byte
	queryResults      map[string][]*statedb.VersionedKV
	error             error
	queryError        error
	itProvider        func() *KVIterator
	bytesKeySupported bool
}