final String comment = "comment";
ModuleItem packageItem = mock(ModuleItem.class);
when(packageItem.getFormat()).thenReturn("package");
AssetItemIterator assetIterator = mock(AssetItemIterator.class);
when(packageItem.listAssetsWithVersionsSpecifiedByDependenciesByFormat(AssetFormats.PROPERTIES, AssetFormats.CONFIGURATION)).thenReturn(assetIterator);
when(this.rulesRepository.containsSnapshot(packageName,
snapshotName)).thenReturn(true);
when(this.rulesRepository.loadModuleSnapshot(packageName,
snapshotName)).thenReturn(packageItem);
this.repositoryPackageOperations.createModuleSnapshot(packageName,