private static AccountService createInMemoryAccountService() throws Exception {
    AccountService accountService = new InMemAccountService(false, false);
    List<Account> accounts = new ArrayList<>();
    ThreadLocalRandom random = ThreadLocalRandom.current();
    for (int i = 0; i < NUMBER_ACCOUNT - 1; i++) {
      short accountId = (short) (i + 100);
      String accountName = String.format(ACCOUNT_NAME_FORMAT, accountId);
      int numContainer = random.nextInt(NUMBER_CONTAINER - 2) + 2;
      List<Container> containers = new ArrayList<>();
      for (int j = 0; j < numContainer; j++) {
        short containerId = (short) (j + 2);
        String containerName = String.format(CONTAINER_NAME_FORMAT, containerId);
        containers.add(new ContainerBuilder(containerId, containerName, Container.ContainerStatus.ACTIVE, "", accountId).build());
      }
      Account account = new AccountBuilder(accountId, accountName, Account.AccountStatus.ACTIVE).containers(containers).build();
      accounts.add(account);
    }
    // Now add the special account
    //@formatter:off
    accounts.add(
        new AccountBuilder(HUGE_LIST_ACCOUNT_ID, String.format(ACCOUNT_NAME_FORMAT, HUGE_LIST_ACCOUNT_ID), Account.AccountStatus.ACTIVE)
            .containers(
                Collections.singletonList(
                    new ContainerBuilder(HUGE_LIST_CONTAINER_ID, String.format(CONTAINER_NAME_FORMAT, HUGE_LIST_CONTAINER_ID), Container.ContainerStatus.ACTIVE, "", HUGE_LIST_ACCOUNT_ID)
                        .build()))
            .build());
    //@formatter:on
    accountService.updateAccounts(accounts);
    return accountService;
  }
Create an in memory account service for named blob.
@return An {@link AccountService} object.
@throws Exception
ambry-tools/src/main/java/com/github/ambry/tools/perf/NamedBlobMysqlDatabasePerf.java