public static String getUserRole() {
        return Optional.ofNullable(USER_THREAD_LOCAL.get()).map(User::getUserRole).orElse("");
    }
@Test
    public void testGetUserRole() {
        UserContext.setUserInfo(USERNAME, USER_ROLE);
        String userRole = UserContext.getUserRole();
        Assert.isTrue(USER_ROLE.equals(userRole));
    }