@Test
public void testUpdate() throws Exception {
Post request1 = createUser("userstest.gpx");
request1.executeAsString();
String key = parseUserKey(request1.getLocation());
HttpRequest request2 = updateUser(key, "alif", "topf", "Ali", "Top", "ali@top.org", USERNAME, PASSWORD);
String result2 = request2.executeAsString();
assertEquals("user alif updated", result2);
assertEquals(200, request2.getStatusCode());
assertTrue(request2.isSuccessful());
HttpRequest request3 = readUser("alif");
String result3 = request3.executeAsString();
assertEquals(200, request3.getStatusCode());
assertTrue(request3.isSuccessful());
GpxType gpxType = GpxUtil.unmarshal11(result3);
assertNotNull(gpxType);
assertEquals("alif", gpxType.getMetadata().getName());
assertNull(gpxType.getMetadata().getDesc());