type SimpleCommandHandler … // Execute provides a mock function with given fields: _a0 func (_m *SimpleCommandHandler) Execute(_a0 commands.CommandActivation) { … } // NewSimpleCommandHandler creates a new instance of SimpleCommandHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewSimpleCommandHandler(t interface { … }