function findAddonCacheEntriesByName(perBundleAddonCacheInstance, bundleHostPkgInfo, addonName) {
  let bundleHostCacheEntry = perBundleAddonCacheInstance.bundleHostCache.get(bundleHostPkgInfo);

  if (!bundleHostCacheEntry) {
    return null;
  }

  let addonInstanceCache = bundleHostCacheEntry.addonInstanceCache;
  let cacheEntries = Array.from(addonInstanceCache.values());
  let addonEntries = cacheEntries.filter((entry) => entry[TARGET_INSTANCE].name === addonName);

  return addonEntries;
}
For help with testing, given a bundleHostName and an addon name, return
a list of the addon cache entries that have that addon name.

@name findAddonCacheEntriesByName