Imports github.com/certifi/gocertifi github.com/pkg/errors github.com/SparkPost/gosparkpost/events Standard library imports io/ioutil net/http net/http/httptest net/http/httputil net/url reflect regexp strings testing time bytes crypto/tls encoding/base64 encoding/json errors fmt