private AmbryQuotaManager createAmbryQuotaManager(QuotaConfig quotaConfig, QuotaMetrics quotaMetrics)
      throws ReflectiveOperationException {
    if (isAtomic) {
      return new AtomicAmbryQuotaManager(quotaConfig, testQuotaRecommendationMergePolicy, ACCOUNT_SERVICE, null,
          quotaMetrics, routerConfig);
    } else {
      return new AmbryQuotaManager(quotaConfig, testQuotaRecommendationMergePolicy, ACCOUNT_SERVICE, null, quotaMetrics,
          routerConfig);
    }
  }
Create one of {@link AmbryQuotaManager} or {@link AtomicAmbryQuotaManager} object based on specified params and isAtomic flag.
@param quotaConfig {@link QuotaConfig} object.
@param quotaMetrics {@link QuotaMetrics} object.
@return QuotaManager instance representing {@link AtomicAmbryQuotaManager} if isAtomic is {@code true}. {@link AmbryQuotaManager} object otherwise.
@throws ReflectiveOperationException in case the {@link AmbryQuotaManager} could not be created.
ambry-quota/src/test/java/com/github/ambry/quota/AmbryQuotaManagerTest.java