public Set<String> getJsonStructure(String user) {
        fillPermissions(user);
        return _roles;
    }
@Test
    public void testGetUerPermissionsWhenNoSecurity() {
        setupUserPermissions(false);

        assertThrows("Unable to retrieve privilege information for an unsecure connection",
                UserRequestException.class,
                () -> _userPermissions.getJsonStructure("ANONYMOUS"));
    }