package Ġnet . cord a . core tests . ind entity Ċ Ċ import Ġnet . cord a . core . crypto . entropy To KeyPair Ċ import Ġnet . cord a . core . identity . Abstract Party Ċ import Ġnet . cord a . core . identity . Anonymous Party Ċ import Ġnet . cord a . core . identity . Party Ċ import Ġnet . cord a . testing . core . AL ICE _ NAME Ċ import Ġorg . junit . Test Ċ import Ġjava . math . BigInteger Ċ import Ġkotlin . test . assertEquals Ċ import Ġkotlin . test . assertNot Equals Ċ Ċ class ĠParty Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġequality () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġkey Ġ= Ġentropy To KeyPair ( BigInteger . valueOf ( 2 0 1 7 0 2 0 7 L )). public ĊĠĠĠĠĠĠĠ Ġval Ġdifferent Key Ġ= Ġentropy To KeyPair ( BigInteger . valueOf ( 7 2 0 1 7 0 2 L )). public ĊĠĠĠĠĠĠĠ Ġval Ġanonymous Party Ġ= ĠAn onymous Party ( key ) ĊĠĠĠĠĠĠĠ Ġval Ġparty Ġ= ĠParty ( AL ICE _ NAME , Ġkey ) ĊĠĠĠĠĠĠĠ ĠassertEquals < Abstract Party >( party , Ġanonymous Party ) ĊĠĠĠĠĠĠĠ ĠassertEquals < Abstract Party >( anonymous Party , Ġparty ) ĊĠĠĠĠĠĠĠ Ġassert Not Equals < Abstract Party >( Anonymous Party ( different Key ), Ġanonymous Party ) ĊĠĠĠĠĠĠĠ Ġassert Not Equals < Abstract Party >( Anonymous Party ( different Key ), Ġparty ) ĊĠĠĠ Ġ} Ċ }