package Ġnet . cord a . explorer . model Ċ Ċ import Ġnet . cord a . core . contracts . USD Ċ import Ġnet . cord a . core . contracts . currency Ċ import Ġorg . junit . Test Ċ import Ġkotlin . test . assert Fails With Ċ Ċ class ĠIss uer Model Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` test Ġissuer Ġregex `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġregex Ġ= ĠRegex (" cord a . issuer .( USD | GBP | CH F )") ĊĠĠĠĠĠĠĠ Ġkotlin . test . assertTrue (" cord a . issuer . USD ". matches ( regex )) ĊĠĠĠĠĠĠĠ Ġkotlin . test . assertTrue (" cord a . issuer . GBP ". matches ( regex )) ĊĊĠĠĠĠĠĠĠ Ġkotlin . test . assertFalse (" cord a . issuer . USD . GBP ". matches ( regex )) ĊĠĠĠĠĠĠĠ Ġkotlin . test . assertFalse (" cord a . issuer . EUR ". matches ( regex )) ĊĠĠĠĠĠĠĠ Ġkotlin . test . assertFalse (" cord a . issuer ". matches ( regex )) ĊĊĠĠĠĠĠĠĠ Ġkotlin . test . assertEquals ( USD , Ġcurrency (" cord a . issuer . USD ". substring After Last (". "))) ĊĠĠĠĠĠĠĠ Ġassert Fails With ( IllegalArgumentException :: class , Ġ{ Ġcurrency (" cord a . issuer . DO LL AR ". substring Before Last (". ")) Ġ}) ĊĠĠĠ Ġ} Ċ }