package Ġcom . app ify hub . mon ol ith . security Ċ Ċ import Ġassert k . assertThat Ċ import Ġassert k . assertions . isNotNull Ċ import Ġcom . app ify hub . mon ol ith . Test App ify Hub Application Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . junit . jupiter . api . extension . Extend With Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . boot . test . context . SpringBootTest Ċ import Ġorg . springframework . test . context . Active Profiles Ċ import Ġorg . springframework . test . context . junit . jupiter . Spring Extension Ċ Ċ @ Extend With ( Spring Extension :: class ) Ċ @ Active Profiles ( Test App ify Hub Application . PROFILE ) Ċ @ SpringBootTest ( classes Ġ= Ġ[ Test App ify Hub Application :: class ]) Ċ class ĠJwt Configuration Test Ġ{ ĊĊĠ Ġ@ Autowired ĊĠ Ġprivate Ġlateinit Ġvar Ġconfiguration : ĠJwt Configuration ĊĊĠ Ġ@ Test Ġfun Ġ` key Ġstore Ġexists `() Ġ{ ĊĠĠĠ ĠassertThat ( configuration . key Store ()). isNotNull () ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġ` jwt Ġsigning Ġkey Ġexists `() Ġ{ ĊĠĠĠ Ġval Ġkey Store Ġ= Ġconfiguration . key Store () ĊĠĠĠ ĠassertThat ( configuration . jwt Signing Key ( key Store )). isNotNull () ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġ` jwt Ġvalidation Ġkey Ġexists `() Ġ{ ĊĠĠĠ Ġval Ġkey Store Ġ= Ġconfiguration . key Store () ĊĠĠĠ ĠassertThat ( configuration . jwt Validation Key ( key Store )). isNotNull () ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġ` jwt Ġdecoder Ġexists `() Ġ{ ĊĠĠĠ Ġval Ġkey Store Ġ= Ġconfiguration . key Store () ĊĠĠĠ Ġval ĠpublicKey Ġ= Ġconfiguration . jwt Validation Key ( key Store ) ĊĠĠĠ ĠassertThat ( configuration . jwt Decoder ( publicKey )). isNotNull () ĊĠ Ġ} Ċ Ċ } Ċ