/* Ċ Ġ* ĠCopyright Ġ 2 0 1 8 ĠCo up ang ĠLtd . Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġorg . springframework . data . re query . kotlin . repository . config Ċ Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . Test Ċ import Ġkotlin . test . assertEquals Ċ import Ġkotlin . test . assertNot Equals Ċ Ċ class ĠIns pection ClassLoader Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` should Ġload Ġexternal Ġclass `() Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġclass Loader Ġ= ĠIns pection ClassLoader ( this . java Class . class Loader ) ĊĊĠĠĠĠĠĠĠ Ġval Ġisolated Ġ= Ġclass Loader . load Class (" org . h 2 . Driver ") ĊĠĠĠĠĠĠĠ Ġval Ġincluded Ġ= Ġjava Class . class Loader . load Class (" org . h 2 . Driver ") ĊĊĠĠĠĠĠĠĠ ĠassertThat ( is olated . class Loader ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. is Same As ( class Loader ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isNot Same As ( java Class . class Loader ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( is olated ). isNot EqualTo ( included ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( class Loader , Ġisolated . class Loader ) ĊĠĠĠĠĠĠĠ Ġassert Not Equals ( java Class . class Loader , Ġisolated . class Loader ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( java Class . class Loader , Ġincluded . class Loader ) ĊĠĠĠĠĠĠĠ Ġassert Not Equals ( included , Ġisolated ) ĊĠĠĠ Ġ} Ċ }