type FormCommandHandler … // Execute provides a mock function with given fields: activation func (_m *FormCommandHandler) Execute(activation commands.CommandFormActivation) { … } // NewFormCommandHandler creates a new instance of FormCommandHandler. 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 NewFormCommandHandler(t interface { … }