package Ġio . h nd rs . slack . api . test . group . conversation Ċ Ċ import Ġio . h nd rs . slack . api . contract . jackson . group . con versations . Con versations Leave Request Ċ import Ġio . h nd rs . slack . api . contract . jackson . group . con versations . Error Conversation Leave Response Ċ import Ġio . h nd rs . slack . api . contract . jackson . group . con versations . Successful Conversation Leave Response Ċ import Ġio . h nd rs . slack . api . group . Api Call Result Ċ import Ġio . h nd rs . slack . api . group . con versations . Con versations Leave Method Ċ import Ġio . h nd rs . slack . api . group . con versations . Con versations Method Group Ċ import Ġio . h nd rs . slack . api . test . Mock Method Ċ Ċ /** Ċ Ġ* ĠTest able Ġimplementation Ġof Ġ[ Con versations Method Group . leave ] Ċ Ġ*/ Ċ open Ġclass ĠMock Con versations Leave Method Ġ: Ġio . h nd rs . slack . api . group . con versations . Con versations Leave Method (), ĊĠĠĠ ĠMock Method < Successful Conversation Leave Response , ĠError Conversation Leave Response , ĠCon versations Leave Request > Ġ{ ĊĊĠĠĠ Ġoverride Ġvar Ġsuccess Response : ĠSuccessful Conversation Leave Response ? Ġ= Ġnull ĊĠĠĠ Ġoverride Ġvar Ġfailure Response : ĠError Conversation Leave Response ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun Ġrequest (): Ġio . h nd rs . slack . api . group . Api Call Result < Successful Conversation Leave Response , ĠError Conversation Leave Response > Ġ{ ĊĊĠĠĠĠĠĠĠ Ġthis . success Response ?. let Ġ{ Ġthis . on Success ?. invoke ( it ) Ġ} ĊĠĠĠĠĠĠĠ Ġthis . failure Response ?. let Ġ{ Ġthis . on Failure ?. invoke ( it ) Ġ} ĊĊĠĠĠĠĠĠĠ Ġreturn Ġio . h nd rs . slack . api . group . Api Call Result ( this . success Response , Ġthis . failure Response ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġparams (): ĠCon versations Leave Request Ġ= Ġparams Ċ } Ċ