//Eva perez comparte una foto con uno de sus familiares.
JsonObject familiar = familiars.get("data").getAsJsonArray().get(0).getAsJsonObject();
JsonObject message = new JsonObject();
message.addProperty("body", "Cuerpo del mensaje");
JsonArray tos = new JsonArray();
JsonObject to = new JsonObject();
to.addProperty("id", familiar.get("id").getAsLong());
to.addProperty("firstName", familiar.get("firstName").getAsString());
tos.add(to);
message.add("receivers", tos);
JsonArray contents = new JsonArray();
JsonObject content = new JsonObject();
content.addProperty("type", Content.ContentType.PHOTO.getName());
content.addProperty("id", photo.id);
content.addProperty("source", location);
contents.add(content);
message.add("contents", contents);
request = newRequest();
request.cookies.putAll(cookies);
response = POST(request,"/api/me/outbox", "application/json", message.toString());
assertStatus(StatusCode.OK,response);