@Test
  public void testGetCUQuotasFromJson() throws IOException, AccountServiceException {
    InMemAccountService accountService = new InMemAccountService(false, false);
    ObjectMapper objectMapper = new ObjectMapper();
    Map<String, JsonCUQuotaDataProviderUtil.MapOrQuota> testQuotas = objectMapper.readValue(DEFAULT_CU_QUOTA_IN_JSON,
        new TypeReference<Map<String, JsonCUQuotaDataProviderUtil.MapOrQuota>>() {
        });
    for (String s : testQuotas.keySet()) {
      accountService.updateAccounts(Collections.singletonList(createAccountForQuota(testQuotas.get(s), s)));
    }
    Map<String, CapacityUnit> quotas =
        JsonCUQuotaDataProviderUtil.getCUQuotasFromJson(DEFAULT_CU_QUOTA_IN_JSON, accountService);

    Assert.assertEquals(4, quotas.size());
    Assert.assertEquals(1024000000, (long) quotas.get("101_1").getRcu());
    Assert.assertEquals(1024000000, (long) quotas.get("101_1").getWcu());
    Assert.assertEquals(258438456, (long) quotas.get("101_2").getRcu());
    Assert.assertEquals(258438456, (long) quotas.get("101_2").getWcu());
    Assert.assertEquals(1024000000, (long) quotas.get("102_1").getRcu());
    Assert.assertEquals(1024000000, (long) quotas.get("102_1").getWcu());
    Assert.assertEquals(10737418240L, (long) quotas.get("103").getRcu());
    Assert.assertEquals(10737418240L, (long) quotas.get("103").getWcu());
  }
Create a {@link Container} with the specified containerId.
@param containerId id of the container.
@return Container object.
ambry-quota/src/test/java/com/github/ambry/quota/capacityunit/JsonCUQuotaDataProviderUtilTest.java