Implement endpoints.Create.
diff --git a/openstack/identity/v3/endpoints/requests_test.go b/openstack/identity/v3/endpoints/requests_test.go
index 77a2292..7bd6fcf 100644
--- a/openstack/identity/v3/endpoints/requests_test.go
+++ b/openstack/identity/v3/endpoints/requests_test.go
@@ -38,6 +38,7 @@
       }
     `)
 
+		w.WriteHeader(http.StatusCreated)
 		fmt.Fprintf(w, `
       {
         "endpoint": {
@@ -68,7 +69,7 @@
 		t.Fatalf("Unable to create an endpoint: %v", err)
 	}
 
-	expected := Endpoint{
+	expected := &Endpoint{
 		ID:        "12",
 		Interface: InterfacePublic,
 		Name:      "the-endiest-of-points",