public Supplier<CacheLoader<RegionAndName, Image>> provideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate) {
return super.provideRegionAndNameToImageSupplierCacheLoader(delegate);
}
};
RegionAndName regionAndName = new RegionAndName("myregion", "myname");
AuthorizationException authException = new AuthorizationException();
RegionAndIdToImage mockRegionAndIdToImage = createMock(RegionAndIdToImage.class);
expect(mockRegionAndIdToImage.load(regionAndName)).andThrow(authException).once();
replay(mockRegionAndIdToImage);