package Ġorg . wallet connect čĊč Ċ import Ġcom . squareup . mos hi . M oshi č Ċ import Ġokhttp 3 . Ok HttpClient č Ċ import Ġorg . assertj . core . api . Assertions . assertThat č Ċ import Ġorg . junit . Test č Ċ import Ġorg . wallet connect . impl s . File WC Session Store č Ċ import Ġorg . wallet connect . impl s . M oshi Payload Adapter č Ċ import Ġorg . wallet connect . impl s . Ok Http Transport č Ċ import Ġorg . wallet connect . impl s . WC Session č Ċ import Ġjava . io . File č Ċ import Ġjava . util . concurrent . TimeUnit čĊč Ċ class ĠThe Uri Parser Ġ{ čĊčĊĠĠĠ Ġ@ Test čĊĠĠĠ Ġfun Ġcan Parse Normal URI () Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġuri Ġ= čĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" wc : ffd 7 0 e 4 7 - 8 6 3 4 - 4 eba - 9 5 e 9 - 8 1 d 7 d 1 ee 3 bc 3 @ 1 ? bridge = https % 3 A % 2 F % 2 F bridge . wallet connect . org & key = 1 0 d 8 4 2 ec 7 5 5 f 6 7 ed 3 7 de 8 9 4 8 1 1 d 2 b 6 4 1 e 1 e 7 5 2 f 3 a 9 1 cec 0 5 d 6 4 ed 4 b 7 7 3 5 cb 8 c 3 " čĊčĊĠĠĠĠĠĠĠ Ġval Ġconfig Ġ= ĠSession . Config . from WC Uri ( uri ) čĊčĊĠĠĠĠĠĠĠ ĠassertThat ( config . handshake Topic ). isEqualTo (" ffd 7 0 e 4 7 - 8 6 3 4 - 4 eba - 9 5 e 9 - 8 1 d 7 d 1 ee 3 bc 3 ") čĊĠĠĠĠĠĠĠ ĠassertThat ( config . protocol ). isEqualTo (" wc ") čĊĠĠĠĠĠĠĠ ĠassertThat ( config . version ). isEqualTo ( 1 ) čĊĠĠĠĠĠĠĠ ĠassertThat ( config . key ). isEqualTo (" 1 0 d 8 4 2 ec 7 5 5 f 6 7 ed 3 7 de 8 9 4 8 1 1 d 2 b 6 4 1 e 1 e 7 5 2 f 3 a 9 1 cec 0 5 d 6 4 ed 4 b 7 7 3 5 cb 8 c 3 ") čĊĠĠĠĠĠĠĠ ĠassertThat ( config . bridge ). isEqualTo (" https :// bridge . wallet connect . org ") čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ@ Test čĊĠĠĠ Ġ// Ġused Ġe . g . Ġin Ġmobile Ġto Ġbring Ġthe Ġapp Ġto Ġthe Ġforeground čĊĠĠĠ Ġfun Ġcan Parse Minimal URI () Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġconfig Ġ= ĠSession . Config . from WC Uri (" wc : e 5 9 9 6 5 0 1 - eb bd - 4 bbe - 9 0 af - 0 d 9 2 1 cf 4 3 9 d 4 @ 2 ") čĊčĊĠĠĠĠĠĠĠ ĠassertThat ( config . handshake Topic ). isEqualTo (" e 5 9 9 6 5 0 1 - eb bd - 4 bbe - 9 0 af - 0 d 9 2 1 cf 4 3 9 d 4 ") čĊĠĠĠĠĠĠĠ ĠassertThat ( config . protocol ). isEqualTo (" wc ") čĊĠĠĠĠĠĠĠ ĠassertThat ( config . version ). isEqualTo ( 2 ) čĊĠĠĠ Ġ} č Ċ } čĊčĊ