public MapStoreConfig setProperties(Properties properties) {
        this.properties = checkNotNull(properties, "Map store config properties cannot be null!");
        return this;
    }
@Test
    public void setProperties() {
        Properties properties = new Properties();
        properties.setProperty("a", "b");
        MapStoreConfig cfg = new MapStoreConfig().setProperties(properties);
        assertEquals(properties, cfg.getProperties());
        assertEquals("b", cfg.getProperty("a"));
        Properties otherProperties = new Properties();
        otherProperties.setProperty("a", "b");
        assertEquals(new MapStoreConfig().setProperties(otherProperties), cfg);
    }