package Ġcom . hex arch boot demo . adapter . output . rpc . el ig ibility . internal Ċ Ċ import Ġcom . hex arch boot demo . application . port . input . V oter El ig ibility UseCase Ċ import Ġcom . hex arch boot demo . domain . model . Social Security Number Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ 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 . junit . jupiter . Spring Extension Ċ Ċ @ Extend With ( Spring Extension :: class ) Ċ @ SpringBootTest ( classes Ġ= Ġ[ El ig ibility Test Application :: class ]) Ċ class ĠV oter El ig ibility Repository IT Ġ{ ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġvot er El ig ib l ity Repo : ĠV oter El ig ibility Repository ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` v oter Ġis Ġel igible `() Ġ{ ĊĠĠĠĠĠĠĠ Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġvot er Is El igible Ġ= Ġvot er El ig ib l ity Repo . is El igible ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠV oter El ig ibility UseCase . V oter El ig ibility Query ( Social Security Number (" 9 9 9 - 9 9 - 9 9 9 9 "))) ĊĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertThat ( v oter Is El igible ). isTrue () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ