package Ġcom . radix d lt . client . d apps . messaging Ċ Ċ import Ġcom . radix d lt . client . core . address . Rad ix Address Ċ import Ġorg . junit . Test Ċ Ċ import Ġorg . mockito . Mockito .` when ` Ċ import Ġorg . mockito . Mockito . mock Ċ Ċ class ĠRad ix Message Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun ĠtoString Test () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfrom Ġ= Ġmock ( Rad ix Address :: class . java ) ĊĠĠĠĠĠĠĠ Ġval Ġto Ġ= Ġmock ( Rad ix Address :: class . java ) ĊĠĠĠĠĠĠĠ Ġ` when `< String >( from . toString ()). thenReturn (" Me ") ĊĠĠĠĠĠĠĠ Ġ` when `< String >( to . toString ()). thenReturn (" You ") ĊĠĠĠĠĠĠĠ Ġval Ġmessage Ġ= ĠRad ix Message ( from , Ġto , Ġ" Hello ", Ġ 0 L , Ġtrue ) ĊĠĠĠĠĠĠĠ Ġprintln ( message . toString ()) ĊĠĠĠ Ġ} Ċ } Ċ