package Ġcom . magic jack . interceptor . internal . support Ċ Ċ import Ġcom . magic jack . interceptor . api . Interceptor Collector Ċ import Ġio . mock k . every Ċ import Ġio . mock k . mock k Ċ import Ġio . mock k . verify Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ class ĠInter ceptor Crash Handler Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġun caught Exception _ is Reported Correct ly () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmock Collector Ġ= Ġmock k < Interceptor Collector >() ĊĠĠĠĠĠĠĠ Ġval Ġmock Throwable Ġ= ĠThrowable () ĊĠĠĠĠĠĠĠ Ġval Ġhandler Ġ= ĠInter ceptor Crash Handler ( mock Collector ) ĊĠĠĠĠĠĠĠ Ġevery Ġ{ Ġmock Collector . onError ( any (), Ġany ()) Ġ} Ġreturns ĠUnit ĊĊĠĠĠĠĠĠĠ Ġhandler . unc a ught Exception ( Thread . currentThread (), Ġmock Throwable ) ĊĊĠĠĠĠĠĠĠ Ġverify Ġ{ Ġmock Collector . onError (" Error Ġcaught Ġon Ġ${ Thread . currentThread (). name } Ġthread ", Ġmock Throwable ) Ġ} ĊĠĠĠ Ġ} Ċ } Ċ