@Bean
    @ConditionalOnMissingBean(value = DataBaseProperties.class)
    public DataBaseProperties dataBaseProperties(@Value("${shenyu.database.dialect:h2}") final String dialect,
                                                   @Value("${shenyu.database.init_script:sql-script/h2/schema.sql}") final String initScript,
                                                   @Value("${shenyu.database.init_enable:true}") final Boolean initEnable) {
        DataBaseProperties dataSourceProperties = new DataBaseProperties();
        dataSourceProperties.setDialect(dialect);
        dataSourceProperties.setInitScript(initScript);
        dataSourceProperties.setInitEnable(initEnable);
        return dataSourceProperties;
    }
@Test
    public void testDataBaseProperties() {
        DataBaseConfiguration dataBaseConfiguration = new DataBaseConfiguration();
        String dialect = "MySQL";
        String initScript = "/tmp/init.sql";
        DataBaseProperties dataBaseProperties = dataBaseConfiguration.dataBaseProperties(dialect, initScript, true);
        assertNotNull(dataBaseProperties);
        assertEquals(dataBaseProperties.getDialect(), dialect);
        assertEquals(dataBaseProperties.getInitScript(), initScript);
        assertEquals(dataBaseProperties.getInitEnable(), true);
    }