@Test
public void test1() {

    // 默认配置
    YamlInlineShardingStrategyConfiguration defaultInline = new YamlInlineShardingStrategyConfiguration();
    defaultInline.setShardingColumn("default_column");
    YamlShardingStrategyConfiguration defaultTableStrategy = new YamlShardingStrategyConfiguration();
    defaultTableStrategy.setInline(defaultInline);
    // table1配置
    YamlInlineShardingStrategyConfiguration inlineOfTable1 = new YamlInlineShardingStrategyConfiguration();
    inlineOfTable1.setAlgorithmExpression("t_table1->${default_column}");
    YamlShardingStrategyConfiguration tableStrategyOfTable1 = new YamlShardingStrategyConfiguration();
    tableStrategyOfTable1.setInline(inlineOfTable1);
    YamlTableRuleConfiguration table1 = new YamlTableRuleConfiguration();
    table1.setTableStrategy(tableStrategyOfTable1);
    // 设置tables
    Map<String, YamlTableRuleConfiguration> tables = new HashMap<>();
    tables.put("shardingDs01", table1);
    ZebraShardingRuleConfiguration sharding = new ZebraShardingRuleConfiguration();
    sharding.setDefaultTableStrategy(defaultTableStrategy);
    sharding.setTables(tables);
    ZebraShardingDataSourceCfg zebraShardingDataSourceCfg = new ZebraShardingDataSourceCfg();
    zebraShardingDataSourceCfg.setSharding(sharding);
    ZebraShardingDefaultCfgFiller.checkThenFill(zebraShardingDataSourceCfg);
    // 检查
    String defaultTableExpression = zebraShardingDataSourceCfg
            .getSharding()
            .getDefaultTableStrategy()
            .getInline()
            .getAlgorithmExpression();
    // 默认表 expression 自动补充
    assertThat(defaultTableExpression, is("THIS_IS_TABLE_PLACE_HOLDER"));
    Collection<YamlTableRuleConfiguration> newTables = zebraShardingDataSourceCfg
            .getSharding()
            .getTables()
            .values();
    YamlTableRuleConfiguration newTable1 = newTables.iterator().next();
    YamlInlineShardingStrategyConfiguration newInlineOfTable1 = newTable1.getTableStrategy().getInline();
    // 分表字段设置为默认值
    assertThat(newInlineOfTable1.getShardingColumn(), is("default_column"));
    // 分表表达式还是原来的
    assertThat(newInlineOfTable1.getAlgorithmExpression(), is("t_table1->${default_column}"));
}