func (d *MockServiceQuery) Fetch(clients *dependency.ClientSet, opts *dependency.QueryOptions) (interface{}, *dependency.ResponseMetadata, error) {
	args := d.Mock.Called(clients)
	if args.Get(0) != nil {
		return args.Get(0).([]*dependency.CatalogService), nil, nil
	}
	return nil, nil, args.Error(2)
}
Fetch mocks the fetch interface on the consul service query
package consul
import (
	"fmt"
	"github.com/hashicorp/consul-template/dependency"
	"github.com/stretchr/testify/mock"
)
type MockServiceQuery struct {
	mock.Mock
	name string
}