func TestReadFullyXMLSuccess(t *testing.T) {
    resp := &http.Response{StatusCode: 200, Status: "OK", Body: ioutil.NopCloser(strings.NewReader("<dummy></dummy>"))}
    var payload string
    err := XML(func() (*http.Response, error) {
        return resp, nil