func NewMockOperationStore() *MockOperationStore {
	return &MockOperationStore{operations: make(map[string][]*operation.AnchoredOperation)}
}
NewMockOperationStore returns a new mock operation store.
package mocks
import (
	"errors"
	"fmt"
	"sync"
	"github.com/trustbloc/sidetree-core-go/pkg/api/operation"
	"github.com/trustbloc/sidetree-core-go/pkg/observer"
)
type MockOpStoreProvider struct {
	opStore observer.OperationStore
}
func NewMockOpStoreProvider(opStore observer.OperationStore) *MockOpStoreProvider {
	return &MockOpStoreProvider{opStore: opStore}
}
func (m *MockOpStoreProvider) ForNamespace(string) (observer.OperationStore, error) {
	return m.opStore, nil
}
type MockOperationStore struct {
	sync.RWMutex
	operations map[string][]*operation.AnchoredOperation
}