.getAssetFilesLink()));
assertNotNull("assetFiles", assetFiles);
assertEquals("assetFiles.size", inputFiles.size(), assetFiles.size());
ContentKeyInfo contentKey = null;
if (asset.getOptions() == AssetOption.StorageEncrypted) {
ListResult<ContentKeyInfo> contentKeys = service.list(ContentKey
.list(asset.getContentKeysLink()));
assertEquals("contentKeys size", 1, contentKeys.size());
contentKey = contentKeys.get(0);
}
// Compare encryption info for asset files
for (AssetFileInfo assetFile : assetFiles) {
if (asset.getOptions() == AssetOption.StorageEncrypted) {
assertEquals("assetFile.getIsEncrypted", true,
assetFile.getIsEncrypted());
assertEquals("assetFile.getEncryptionKeyId",
contentKey.getId(), assetFile.getEncryptionKeyId());
assertNotNullOrEmpty("assetFile.getEncryptionScheme",
assetFile.getEncryptionScheme());
assertNotNullOrEmpty("assetFile.getEncryptionVersion",
assetFile.getEncryptionVersion());
assertNotNullOrEmpty("assetFile.getInitializationVector",