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