@Deprecated
    public String createToken(Authentication authentication) {
        return createToken(authentication.getName());
    }
@Test
    void testCreateTokenWhenDisableAuthAndSecretKeyIsBlank() {
        when(authConfigs.isAuthEnabled()).thenReturn(false);
        MockEnvironment mockEnvironment = new MockEnvironment();
        mockEnvironment.setProperty(AuthConstants.TOKEN_SECRET_KEY, "");
        mockEnvironment.setProperty(AuthConstants.TOKEN_EXPIRE_SECONDS, AuthConstants.DEFAULT_TOKEN_EXPIRE_SECONDS.toString());
        
        EnvUtil.setEnvironment(mockEnvironment);
        jwtTokenManager = new JwtTokenManager(authConfigs);
        assertEquals("AUTH_DISABLED", jwtTokenManager.createToken("nacos"));
    }