func (_m *EventManager) MessageReceived(dx dataexchange.Plugin, peerID string, data []byte) error {
	ret := _m.Called(dx, peerID, data)
	var r0 error
	if rf, ok := ret.Get(0).(func(dataexchange.Plugin, string, []byte) error); ok {
		r0 = rf(dx, peerID, data)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
MessageReceived provides a mock function with given fields: dx, peerID, data
package eventmocks
import (
	context "context"
	blockchain "github.com/hyperledger/firefly/pkg/blockchain"
	dataexchange "github.com/hyperledger/firefly/pkg/dataexchange"
	fftypes "github.com/hyperledger/firefly/pkg/fftypes"
	mock "github.com/stretchr/testify/mock"
	system "github.com/hyperledger/firefly/internal/events/system"
	tokens "github.com/hyperledger/firefly/pkg/tokens"
)
type EventManager struct {
	mock.Mock
}
func (_m *EventManager) AddSystemEventListener(ns string, el system.EventListener) error {
	ret := _m.Called(ns, el)
	var r0 error
	if rf, ok := ret.Get(0).(func(string, system.EventListener) error); ok {
		r0 = rf(ns, el)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *EventManager) BLOBReceived(dx dataexchange.Plugin, peerID string, hash fftypes.Bytes32, payloadRef string) error {
	ret := _m.Called(dx, peerID, hash, payloadRef)
	var r0 error
	if rf, ok := ret.Get(0).(func(dataexchange.Plugin, string, fftypes.Bytes32, string) error); ok {
		r0 = rf(dx, peerID, hash, payloadRef)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *EventManager) BatchPinComplete(bi blockchain.Plugin, batch *blockchain.BatchPin, author string, protocolTxID string, additionalInfo fftypes.JSONObject) error {
	ret := _m.Called(bi, batch, author, protocolTxID, additionalInfo)
	var r0 error
	if rf, ok := ret.Get(0).(func(blockchain.Plugin, *blockchain.BatchPin, string, string, fftypes.JSONObject) error); ok {
		r0 = rf(bi, batch, author, protocolTxID, additionalInfo)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *EventManager) ChangeEvents() chan<- *fftypes.ChangeEvent {
	ret := _m.Called()
	var r0 chan<- *fftypes.ChangeEvent
	if rf, ok := ret.Get(0).(func() chan<- *fftypes.ChangeEvent); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(chan<- *fftypes.ChangeEvent)
		}
	}
	return r0
}
func (_m *EventManager) CreateUpdateDurableSubscription(ctx context.Context, subDef *fftypes.Subscription, mustNew bool) error {
	ret := _m.Called(ctx, subDef, mustNew)
	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, *fftypes.Subscription, bool) error); ok {
		r0 = rf(ctx, subDef, mustNew)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *EventManager) DeleteDurableSubscription(ctx context.Context, subDef *fftypes.Subscription) error {
	ret := _m.Called(ctx, subDef)
	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, *fftypes.Subscription) error); ok {
		r0 = rf(ctx, subDef)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *EventManager) DeletedSubscriptions() chan<- *fftypes.UUID {
	ret := _m.Called()
	var r0 chan<- *fftypes.UUID
	if rf, ok := ret.Get(0).(func() chan<- *fftypes.UUID); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(chan<- *fftypes.UUID)
		}
	}
	return r0
}