public static MaskRuleConfiguration convert(final Collection<MaskRuleSegment> ruleSegments) {
        Collection<MaskTableRuleConfiguration> tables = new LinkedList<>();
        Map<String, AlgorithmConfiguration> algorithms = new HashMap<>();
        for (MaskRuleSegment each : ruleSegments) {
            tables.add(createMaskTableRuleConfiguration(each));
            algorithms.putAll(createMaskAlgorithmConfigurations(each));
        }
        return new MaskRuleConfiguration(tables, algorithms);
    }
@Test
    void assertCovert() {
        MaskRuleConfiguration actual = MaskRuleStatementConverter.convert(Collections.singleton(new MaskRuleSegment("t_mask", createColumns())));
        assertThat(actual.getTables().iterator().next().getName(), is("t_mask"));
        assertThat(actual.getTables().iterator().next().getColumns().iterator().next().getLogicColumn(), is("user_id"));
        assertThat(actual.getTables().iterator().next().getColumns().iterator().next().getMaskAlgorithm(), is("t_mask_user_id_md5"));
        assertTrue(actual.getMaskAlgorithms().get("t_mask_user_id_md5").getType().contains("MD5"));
    }