/**
   * Mocks a call to {@link Config#GetValue(ConfigValues)) and returns the value it should return.
   * @return The mocked value
   */
  private static String mockConfig(Version version, ConfigurationValues configurationValues) {
    String returnValue = RandomUtils.instance().nextString(10, true);

    ConfigValues configValues = ConfigValues.valueOf(configurationValues.name());
    mcr.mockConfigValue(configValues, version, returnValue);

    return returnValue;
  }
 /** get the configurable delay value from the DB according to given key */
 private long getConfigurableDelay(String configurableDelayKeyName) {
   ConfigValues configDelay = ConfigValues.valueOf(configurableDelayKeyName);
   return Config.<Integer>getValue(configDelay).longValue();
 }