package Ġcom . github . ker ub istan . ker ub . utils . j unix . compression . xz Ċ Ċ import Ġcom . github . ker ub istan . ker ub . model . Software Package Ċ import Ġcom . github . ker ub istan . ker ub . model . Version Ċ import Ġcom . github . ker ub istan . ker ub . test Host Capabilities Ċ import Ġorg . junit . Test Ċ import Ġkotlin . test . assertFalse Ċ import Ġkotlin . test . assertTrue Ċ Ċ class ĠX z Test Ġ{ ĊĊ ĉ @ Test Ċ ĉ fun Ġavailable () Ġ{ Ċĉ ĉ assertFalse (" xz Ġnot Ġavailable ") Ġ{ Ċĉĉ ĉ Xz . available ( null ) Ċĉ ĉ } Ċĉ ĉ assertFalse (" xz Ġnot Ġavailable ") Ġ{ Ċĉĉ ĉ Xz . available ( test Host Capabilities . copy ( installed Software Ġ= ĠlistOf ())) Ċĉ ĉ } Ċĉ ĉ assertTrue (" xz Ġis Ġavailable ") Ġ{ Ċĉĉ ĉ Xz . available ( Ċĉĉĉĉ ĉ test Host Capabilities . copy ( Ċĉĉĉĉĉĉ ĉ installed Software Ġ= ĠlistOf ( Ċĉĉĉĉĉĉĉĉ ĉ Software Package ( name Ġ= Ġ" xz - utils ", Ġversion Ġ= ĠVersion . from Version String (" 5 . 2 . 2 ")) Ċĉĉĉĉĉĉ ĉ ))) Ċĉ ĉ } Ċ ĉ } Ċ }