@Before
  public void setUp() {
    quotaManager = mock(QuotaManager.class);
    when(quotaManager.getQuotaConfig()).thenReturn(quotaConfig);
    when(quotaManager.getQuotaMode()).thenReturn(quotaConfig.throttlingMode);
    InMemAccountService accountService = new InMemAccountService(false, false);
    account = accountService.createAndAddRandomAccount(QuotaResourceType.ACCOUNT);
  }
Running for both {@link QuotaMode#TRACKING} as well as {@link QuotaMode#THROTTLING}.
@return an array container a flag that is {@code true} for {@link QuotaMode#THROTTLING} and {@code false} for
{@link QuotaMode#TRACKING}.
ambry-quota/src/test/java/com/github/ambry/quota/PreProcessQuotaChargeCallbackTest.java