package Ġcom . atlassian . performance . tools . infrastructure . api . distribution Ċ Ċ import Ġcom . atlassian . performance . tools . infrastructure . to Ssh Ċ import Ġcom . atlassian . performance . tools . ss hub untu . api . Ssh Ubuntu Container Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . Test Ċ Ċ class ĠPublic J ira Service Desk Distribution IT Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Download J ira Service Desk () Ġ{ ĊĠĠĠĠĠĠĠ ĠSsh Ubuntu Container (). start (). use Ġ{ Ġssh Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġssh . to Ssh (). new Connection (). use Ġ{ Ġconnection Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġservice Desk Distribution : ĠProduct Distribution Ġ= ĠPublic J ira Service Desk Distribution (" 4 . 0 . 1 ") ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġtarget Folder Ġ= Ġ" test " ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġconnection . execute (" mkdir Ġ$ target Folder ") ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġremote Directory Ġ= Ġservice Desk Distribution ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. install ( connection , Ġtarget Folder ) ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġdirectories Ġ= Ġconnection . execute (" ls Ġ$ remote Directory "). output ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠassertThat ( directories ). contains (" atlassian - jira ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }