package Ġcom . star base . bank wallet . core Ċ Ċ import Ġio . horizontal systems . bank wallet . core . utils . Eth Input Parser Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ Ċ class ĠE th Input Parser Test Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġinput : ĠString ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġparse _ transfer () Ġ{ ĊĠĠĠĠĠĠĠ Ġinput Ġ= Ġ" 0 xa 9 0 5 9 cbb 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 d 5 7 2 4 e 5 6 ea 3 cc 7 5 3 5 2 3 3 9 6 3 5 9 6 0 d 0 7 c 1 5 0 3 f 7 5 e 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 6 3 5 c 9 adc 5 dea 0 0 0 0 0 " ĊĠĠĠĠĠĠĠ Ġval Ġdata Ġ= ĠE th Input Parser . parse ( input ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( null , Ġdata ?. from ) ĊĠĠĠĠĠĠĠ ĠassertEquals (" 5 d 5 7 2 4 e 5 6 ea 3 cc 7 5 3 5 2 3 3 9 6 3 5 9 6 0 d 0 7 c 1 5 0 3 f 7 5 e ", Ġdata ?. to ) ĊĠĠĠĠĠĠĠ ĠassertEquals (" 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 6 3 5 c 9 adc 5 dea 0 0 0 0 0 ", Ġdata ?. value ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġparse _ transfer From () Ġ{ ĊĠĠĠĠĠĠĠ Ġinput Ġ= Ġ" 0 x 2 3 b 8 7 2 dd 0 0 0 0 0 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