// 3. read the schema created above (as admin) - success
schemaTO = schemaService.read(AttributableType.USER, SchemaType.NORMAL, schemaName);
assertNotNull(schemaTO);
// 4. read the schema created above (as user) - success
SchemaService schemaService2 = clientFactory.create(userTO.getUsername(), "password123").getService(
SchemaService.class);
schemaTO = schemaService2.read(AttributableType.USER, SchemaType.NORMAL, schemaName);
assertNotNull(schemaTO);
// 5. update the schema create above (as user) - failure
try {
schemaService2.update(AttributableType.ROLE, SchemaType.NORMAL, schemaName, schemaTO);
fail("Schemaupdate as user schould not work");
} catch (SyncopeClientException e) {
assertNotNull(e);
assertEquals(Response.Status.UNAUTHORIZED, e.getType().getResponseStatus());
} catch (AccessControlException e) {