package Ġorg . phoenix framework Ċ Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġorg . junit . jupiter . api . DisplayName Ċ import Ġorg . junit . jupiter . api . Nested Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ class ĠMessage Test Ġ{ ĊĊĠ Ġ@ Nested ĊĠ Ġ@ DisplayName (" status ") ĊĠ Ġinner Ġclass ĠStatus Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġinternal Ġfun Ġ` returns Ġthe Ġstatus Ġfrom Ġthe Ġpayload `() Ġ{ ĊĠĠĠĠĠ Ġval Ġpayload Ġ= Ġmap Of (" one " Ġto Ġ" two ", Ġ" status " Ġto Ġ" ok ") ĊĠĠĠĠĠ Ġval Ġmessage Ġ= ĠMessage (" ref ", Ġ" topic ", Ġ" event ", Ġpayload , Ġnull ) ĊĊĠĠĠĠĠ ĠassertThat ( message . ref ). isEqualTo (" ref ") ĊĠĠĠĠĠ ĠassertThat ( message . topic ). isEqualTo (" topic ") ĊĠĠĠĠĠ ĠassertThat ( message . event ). isEqualTo (" event ") ĊĠĠĠĠĠ ĠassertThat ( message . payload ). isEqualTo ( payload ) ĊĠĠĠĠĠ ĠassertThat ( message . join Ref ). isNull () ĊĠĠĠĠĠ ĠassertThat ( message . status ). isEqualTo (" ok ") ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ }