Imports github.com/elastic/beats/libbeat/common github.com/elastic/beats/metricbeat/mb/testing github.com/elastic/beats/metricbeat/mb github.com/mitchellh/hashstructure github.com/stretchr/testify/assert github.com/elastic/beats/metricbeat/mb/testing/flags Standard library imports encoding/json io/ioutil net/http os sort testing net/http/httptest