((MockMetricConfigManager) manager).setConfigDao(new MockConfigDao1());
manager.initialize();
String domain1 = "domain1";
String domain2 = "domain2";
manager.insertIfNotExist(domain1, "type", "metricKey", new ConfigItem());
Assert.assertEquals(1, s_storeCount);
manager.insertIfNotExist(domain1, "type", "metricKey", new ConfigItem());
Assert.assertEquals(1, s_storeCount);
manager.insertIfNotExist(domain2, "type", "metricKey", new ConfigItem());
Assert.assertEquals(2, s_storeCount);
manager.insertMetricItemConfig(new MetricItemConfig());
Assert.assertEquals(3, s_storeCount);
MetricItemConfig item = manager.queryMetricItemConfig(manager.buildMetricKey(domain1, "type", "metricKey"));