"     }    }`)    w.WriteHeader(http.StatusOK)   w.Header().Add("Content-Type", "application/json")   w.Write([]byte(`{ "metadata": {"foo":"bar", "this":"that"}}`))  }) }  // HandleMetadataUpdateSuccessfully sets up the test server to respond to a metadata 