assertEquals("Top", extension.getLastname());
assertNull(extension.getPassword()); }
@Test
public void testUpdateWithWrongPassword() 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", "user-does-not-exist", "password-is-wrong");
assertNull(request2.executeAsString());
assertEquals(401, request2.getStatusCode());
assertFalse(request2.isSuccessful());
assertTrue(request2.isUnAuthorized());