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