package Ġdg Ċ Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġkotlin . test . assertEquals Ċ Ċ class ĠCard Re ponse Test Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest _ ToString _ Success () Ġ{ ĊĠĠĠ Ġval Ġres Ġ= ĠCard Response ( 0 ," SUCCESS "," guid 1 2 3 4 ") ĊĠĠĠ Ġres . txn Id Ġ= Ġ" 0 0 1 1 " ĊĠĠĠ ĠassertEquals ( res . toString (), Ġ" guid 1 2 3 4 ĠSUCCESS Ġid : Ġ 0 0 1 1 ") ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest _ ToString _ Failed () Ġ{ ĊĠĠĠ Ġval Ġres Ġ= ĠCard Response ( 0 ," FAILED "," guid 1 2 3 4 ") ĊĠĠĠ Ġres . txn Id Ġ= Ġ" 0 0 1 1 " ĊĠĠĠ Ġres . errorCode Ġ= Ġ" 1 0 0 7 " ĊĠĠĠ Ġres . message Ġ= Ġ" ins ufficient Ġfunds " ĊĠĠĠ ĠassertEquals ( res . toString (), Ġ" guid 1 2 3 4 ĠFAILED Ġid : Ġ 0 0 1 1 ĠError Ġcode : Ġ 1 0 0 7 Ġ- Ġins ufficient Ġfunds ") ĊĠ Ġ} Ċ }