private void assertDataset(Dataset dataset, int index) {
    assertEquals("Wrong account name", refAccountName, dataset.getAccountName());
    assertEquals("Wrong container name", refContainers.get(0).getName(), dataset.getContainerName());
    assertEquals("Wrong dataset name", refDatasetNames.get(index), dataset.getDatasetName());
    assertEquals("Wrong version schema", refDatasetVersionSchemas.get(index), dataset.getVersionSchema());
    assertEquals("Wrong retention policy", refDatasetRetentionPolicy.get(index), dataset.getRetentionPolicy());
    assertEquals("Wrong retention count", refDatasetRetentionCounts.get(index), dataset.getRetentionCount());
    assertEquals("Wrong retention time", refDatasetRetentionTimeInSeconds.get(index), dataset.getRetentionTimeInSeconds());
    assertEquals("Wrong user tage", refDatasetUserTags.get(index), dataset.getUserTags());
  }
Asserts a {@link Dataset} against the reference account for every internal field.
@param dataset the {@link Dataset} to assert.
@param index the index in the reference dataset list to assert against.
ambry-api/src/test/java/com/github/ambry/account/AccountContainerTest.java