private Config createConfigMock(Map<String, String> properties) {
    Config result = createNiceMock(Config.class);
    expect(result.getProperties()).andReturn(properties);
    return result;
  }
Generates config that returns properties
@param properties properties that should be returned by config mock
@return mock
ambari-server/src/test/java/org/apache/ambari/server/state/ConfigMergeHelperTest.java