@Override
  public synchronized void deleteDataset(String accountName, String containerName, String datasetName) {
    Account account = nameToAccountMap.get(accountName);
    short accountId = account.getId();
    short containerId = account.getContainerByName(containerName).getId();
    Map<Pair<String, String>, DatasetVersionRecord> datasetToDatasetVersionMap =
        idToDatasetVersionMap.get(new Pair<>(accountId, containerId));
    if (datasetToDatasetVersionMap != null) {
      for (Map.Entry<Pair<String, String>, DatasetVersionRecord> entry : datasetToDatasetVersionMap.entrySet()) {
        Pair<String, String> key = entry.getKey();
        if (key.getFirst().equals(datasetName)) {
          idToDatasetVersionMap.remove(key);
        }
      }
    }
    nameToDatasetMap.get(new Pair<>(accountName, containerName)).remove(datasetName);
  }
Constructor.
@param shouldReturnOnlyUnknown {@code true} if always returns {@link InMemAccountService#UNKNOWN_ACCOUNT} when queried
                                                    by account name; {@code false} to do the actual query.
@param notifyConsumers {@code true} if consumers should be notified of account changes. {@code false} otherwise.
ambry-test-utils/src/main/java/com/github/ambry/account/InMemAccountService.java