try {
KeystoneApi keystoneApi = api(server.getUrl("/").toString(), "openstack-keystone");
UserAdminApi userAdminApi = keystoneApi.getUserAdminApi().get();
UpdateUserOptions updateUserOptions = UpdateUserOptions.Builder.email("john.smith.renamed@example.org")
.enabled(false).name("jqsmith-renamed").password("jclouds-password");
User updatedUser = userAdminApi.update("u1000", updateUserOptions);
assertNotNull(updatedUser);
assertEquals(updatedUser.getId(), "u1000");
assertEquals(server.getRequestCount(), 3);
assertAuthentication(server);
assertExtensions(server);
RecordedRequest updateUserRequest = server.takeRequest();