StatusMod statusMod = new StatusMod();
statusMod.setOnSyncope(false);
statusMod.getResourceNames().add(RESOURCE_NAME_TESTDB);
userMod.setPwdPropRequest(statusMod);
SyncopeClient authClient = clientFactory.create(created.getUsername(), "password123");
UserTO updated = authClient.getService(UserSelfService.class).update(created.getId(), userMod).
readEntity(UserTO.class);
assertNotNull(updated);
assertEquals("updateApproval", updated.getStatus());
assertFalse(updated.getUsername().endsWith("XX"));
assertTrue(updated.getMemberships().isEmpty());