public void buildFromProperties(Map<String, String> properties) {
        if (properties.containsKey(PropertyAnalyzer.PROPERTIES_BINLOG_VERSION)) {
            configVersion = Long.parseLong(properties.get(
                    PropertyAnalyzer.PROPERTIES_BINLOG_VERSION));

        }
        if (properties.containsKey(PropertyAnalyzer.PROPERTIES_BINLOG_ENABLE)) {
            binlogEnable = Boolean.parseBoolean(properties.get(
                    PropertyAnalyzer.PROPERTIES_BINLOG_ENABLE));
        }
        if (properties.containsKey(PropertyAnalyzer.PROPERTIES_BINLOG_TTL)) {
            binlogTtlSecond = Long.parseLong(properties.get(
                    PropertyAnalyzer.PROPERTIES_BINLOG_TTL));

        }
        if (properties.containsKey(PropertyAnalyzer.PROPERTIES_BINLOG_MAX_SIZE)) {
            binlogMaxSize = Long.parseLong(properties.get(
                    PropertyAnalyzer.PROPERTIES_BINLOG_MAX_SIZE));
        }
    }
@Test
    public void testBuildFromProperties() {
        Map<String, String> properties = new HashMap<>();
        properties.put(PropertyAnalyzer.PROPERTIES_BINLOG_VERSION, "10");
        properties.put(PropertyAnalyzer.PROPERTIES_BINLOG_ENABLE, "false");
        properties.put(PropertyAnalyzer.PROPERTIES_BINLOG_TTL, "20");
        properties.put(PropertyAnalyzer.PROPERTIES_BINLOG_MAX_SIZE, "30");
        binlogConfig.buildFromProperties(properties);
        Assert.assertEquals(10, binlogConfig.getVersion());
        Assert.assertFalse(binlogConfig.getBinlogEnable());
        Assert.assertEquals(20, binlogConfig.getBinlogTtlSecond());
        Assert.assertEquals(30, binlogConfig.getBinlogMaxSize());
    }