@Override
    public String convert(final MaskRuleConfiguration ruleConfig) {
        if (ruleConfig.getTables().isEmpty()) {
            return "";
        }
        StringBuilder result = new StringBuilder(CREATE_MASK);
        Iterator<MaskTableRuleConfiguration> iterator = ruleConfig.getTables().iterator();
        while (iterator.hasNext()) {
            MaskTableRuleConfiguration tableRuleConfig = iterator.next();
            result.append(String.format(MASK, tableRuleConfig.getName(), getMaskColumns(tableRuleConfig.getColumns(), ruleConfig.getMaskAlgorithms())));
            if (iterator.hasNext()) {
                result.append(",").append(System.lineSeparator());
            }
        }
        result.append(";");
        return result.toString();
    }
@Test
    void assertConvertWithEmptyTables() {
        MaskRuleConfiguration maskRuleConfig = mock(MaskRuleConfiguration.class);
        when(maskRuleConfig.getTables()).thenReturn(Collections.emptyList());
        MaskRuleConfigurationToDistSQLConverter maskRuleConfigurationToDistSQLConverter = new MaskRuleConfigurationToDistSQLConverter();
        assertThat(maskRuleConfigurationToDistSQLConverter.convert(maskRuleConfig), is(""));
    }