func testWorkItemsQueued(t *testing.T, expected *stats.APTBucketReaderStats, actual *stats.APTBucketReaderStats) {
	for _, item := range expected.WorkItemsQueued {
		matchingItem, _ := actual.FindWorkItemByNameAndEtag("WorkItemsQueued", item.Name, item.ETag)
		assert.NotNil(t, matchingItem,
			"WorkItem %s missing from WorkItemsQueued", item.Name)
	}
}
func testInstCache(t *testing.T, expected *stats.APTBucketReaderStats, actual *stats.APTBucketReaderStats) {
	for _, inst := range expected.InstitutionsCached {
		assert.True(t, actual.InstitutionsCachedContains(inst.Identifier),
			"Institution %s missing from inst cache", inst.Identifier)
	}
}
func testS3Items(t *testing.T, expected *stats.APTBucketReaderStats, actual *stats.APTBucketReaderStats) {
	for _, item := range expected.S3Items {
		assert.True(t, actual.S3ItemWasFound(item))
	}
}