func NewDocumentArchive(facadeClientSession facade.BirdwatcherFacade, attachmentsContent []*ssm.AttachmentContent, docDescription *ssm.DocumentDescription, cache packageservice.ManifestCache, manifestStr string) archive.IPackageArchive {

	return &PackageArchive{
		facadeClient:  facadeClientSession,
		archiveType:   archive.PackageArchiveDocument,
		attachments:   attachmentsContent,
		documentDesc:  docDescription,
		docVersion:    *docDescription.DocumentVersion,
		manifestCache: cache,
		manifest:      manifestStr,
		documentArn:   *docDescription.Name,
		timeUnit:      0, //No sleep for testing
	}
}
// NewDocumentArchive is a constructor for PackageArchive struct (meant for testing)
NewDocumentArchive is a constructor for PackageArchive struct (meant for testing)
// NewDocumentArchive is a constructor for PackageArchive struct ( meant for testing )
func NewDocumentArchive(facadeClientSession facade.BirdwatcherFacade, attachmentsContent []*ssm.AttachmentContent, docDescription *ssm.DocumentDescription, cache packageservice.ManifestCache, manifestStr string) archive.IPackageArchive {
	return &PackageArchive{
		facadeClient:  facadeClientSession,
		archiveType:   archive.PackageArchiveDocument,
		attachments:   attachmentsContent,
		documentDesc:  docDescription,
		docVersion:    *docDescription.DocumentVersion,
		manifestCache: cache,
		manifest:      manifestStr,
		documentArn:   *docDescription.Name,
		timeUnit:      0, 
	}
}
func NewDocumentArchive ( facadeClientSession facade . BirdwatcherFacade , attachmentsContent [ ] * ssm . AttachmentContent , docDescription * ssm . DocumentDescription , cache packageservice . ManifestCache , manifestStr string ) archive . IPackageArchive { return & PackageArchive { facadeClient : facadeClientSession , archiveType : archive . PackageArchiveDocument , attachments : attachmentsContent , documentDesc : docDescription , docVersion : * docDescription . DocumentVersion , manifestCache : cache , manifest : manifestStr , documentArn : * docDescription . Name , timeUnit : 0 , } }
NewDocumentArchive is a constructor for PackageArchive struct (meant for testing)
NewDocumentArchive is a constructor for PackageArchive struct ( meant for testing )
//No sleep for testing