@Override
    public String convert(final BroadcastRuleConfiguration ruleConfig) {
        if (ruleConfig.getTables().isEmpty()) {
            return "";
        }
        return String.format(CREATE_BROADCAST_TABLE_RULE, Joiner.on(",").join(ruleConfig.getTables()));
    }
@Test
    void assertConvert() {
        BroadcastRuleConfiguration ruleConfig = mock(BroadcastRuleConfiguration.class);
        when(ruleConfig.getTables()).thenReturn(Arrays.asList("t_province", "t_city"));
        String actual = new BroadcastRuleConfigurationToDistSQLConverter().convert(ruleConfig);
        assertThat(actual, is("CREATE BROADCAST TABLE RULE t_province,t_city;"));
    }