package Ġcom . bad oo . automation . devices erver . data Ċ Ċ import Ġcom . bad oo . automation . devices erver . mock This Ċ import Ġcom . n ha ar man . mockito _ kotlin . wh enever Ċ import Ġorg . junit . Assert Ċ import Ġorg . junit . Test Ċ Ċ class ĠError Dto Kt Test Ġ{ ĊĠĠĠ Ġprivate Ġval Ġexception : ĠException Ġ= Ġmock This () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġto Dto () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġstack Trace : ĠArray < StackTrace Element > Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠStack Trace Element ("", Ġ"", Ġ"", Ġ" com . bad oo . Some Class ", Ġ" some Method ", Ġ" Some File . kt ", Ġ 2 ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠStack Trace Element ("", Ġ"", Ġ"", Ġ" com . bad oo . Some Class ", Ġ" some Method ", Ġ" Some File . kt ", Ġ 1 ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠStack Trace Element ("", Ġ"", Ġ"", Ġ" io . ktor . Some Class ", Ġ" some Method ", Ġ" Some File . kt ", Ġ 2 ) ĊĠĠĠĠĠĠĠ Ġ). to Typed Array () ĊĠĠĠĠĠĠĠ Ġwhenever ( exception . stack Trace ). thenReturn ( stack Trace ) ĊĊĠĠĠĠĠĠĠ Ġval Ġexpected StackTrace Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" com . bad oo . Some Class . some Method ( Some File . kt : 2 )", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" com . bad oo . Some Class . some Method ( Some File . kt : 1 )" ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( expected StackTrace , Ġexception . to Dto (). stack Trace ) ĊĠĠĠ Ġ} Ċ }