protected void checkPasswordLength(String password) {
        if (StringUtil.isBlank(password)) {
            throw new RuntimeException("密码不可为空");
        }
        if (password.length() < MINI_PASSWORD_LENGTH) {
            throw new RuntimeException("密码最少为6个字符");
        }
        if (password.length() > MAX_PASSWORD_LENGTH) {
            throw new RuntimeException("密码最多为72个字符");
        }
    }
@Test
    public void testCheckPasswordLength() {
        // 密码为null、空串、过短、过长都会抛出异常
        UserServiceImpl userService = new UserServiceImpl(null, null, null);
        Assert.assertThrows(RuntimeException.class, () -> userService.checkPasswordLength(null));
        Assert.assertThrows(RuntimeException.class, () -> userService.checkPasswordLength(""));
        String shortPassword = "12345";
        Assert.assertThrows(RuntimeException.class, () -> userService.checkPasswordLength(shortPassword));
        String LongPassword = "fjhdjfghdsgahfgajdhsgafghdsbvhbervjdsvhdsbhfbhsdbhfbhsdbavbsbdhjfbhjsdbhfbsdbf";
        Assert.assertThrows(RuntimeException.class, () -> userService.checkPasswordLength(LongPassword));
    }