public static void checkMapConfig(Config config, MapConfig mapConfig,
                                      SplitBrainMergePolicyProvider mergePolicyProvider) {

        checkNotNativeWhenOpenSource(mapConfig.getInMemoryFormat());
        checkNotBitmapIndexWhenNativeMemory(mapConfig.getInMemoryFormat(), mapConfig.getIndexConfigs());
        checkTSEnabledOnEnterpriseJar(mapConfig.getTieredStoreConfig());

        if (getBuildInfo().isEnterprise()) {
            checkTieredStoreMapConfig(config, mapConfig);
            checkMapNativeConfig(mapConfig, config.getNativeMemoryConfig());
        }

        checkMapEvictionConfig(mapConfig.getEvictionConfig());
        checkMapMaxSizePolicyPerInMemoryFormat(mapConfig);
        checkMapMergePolicy(mapConfig,
                mapConfig.getMergePolicyConfig().getPolicy(), mergePolicyProvider);
    }
@Test(expected = InvalidConfigurationException.class)
    public void checkMapConfig_NATIVE() {
        checkMapConfig(new Config(), getMapConfig(NATIVE), splitBrainMergePolicyProvider);
    }