UserTO readUserTO = restTemplate.getForObject(BASE_URL + "user/read/{userId}.json", UserTO.class, 1);
assertNotNull(readUserTO);
super.setupRestTemplate("user2", "password");
SyncopeClientException exception = null;
try {
restTemplate.getForObject(BASE_URL + "user/read/{userId}.json", UserTO.class, 1);
fail();
} catch (SyncopeClientCompositeErrorException e) {
exception = e.getException(SyncopeClientExceptionType.UnauthorizedRole);