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