[BACKLOG-194] -- Added jUnit tests for doGetFileOrDirAsDownload