@Bean
    public OpenAPI apiInfo() {
        return new OpenAPI()
                .info(new Info()
                        .title(TITLE).description(DESCRIPTION)
                        .version(VersionUtils.getVersion(getClass(), DEFAULT_SWAGGER_API_VERSION))
                        .contact(new Contact().name(CONTACT_NAME).url(CONTACT_URL).email(CONTACT_EMAIL))
                )
                .components(new Components()
                        .addSecuritySchemes(org.apache.shenyu.common.constant.Constants.X_ACCESS_TOKEN, new SecurityScheme()
                                .name(org.apache.shenyu.common.constant.Constants.X_ACCESS_TOKEN)
                                .type(Type.APIKEY)
                                .in(In.HEADER)
                                .description(TOKEN_DESCRIPTION)
                        )
                ).addSecurityItem(new SecurityRequirement().addList(org.apache.shenyu.common.constant.Constants.X_ACCESS_TOKEN));
    }
@Test
    public void testApiInfo() {
        OpenAPI actual = swaggerConfiguration.apiInfo();
        assertNotNull(actual);
        Assertions.assertEquals(1, actual.getSecurity().size());
        Assertions.assertEquals(1, actual.getSecurity().get(0).size());
        Assertions.assertTrue(actual.getSecurity().get(0).containsKey(org.apache.shenyu.common.constant.Constants.X_ACCESS_TOKEN));
    }