package Ġbe . fk un nen . the sw is ssystem Ċ Ċ import Ġorg . junit . Test Ċ Ċ import Ġorg . junit . Assert .* Ċ Ċ class ĠSw iss System Match Generator Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgenerate () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġplayers Ġ= Ġmutable ListOf ( Player (" Dan "), ĠPlayer (" Fr ank "), ĠPlayer (" Ge an ina "), ĠPlayer (" K en ny ")) ĊĠĠĠĠĠĠĠ Ġval Ġmatch Generator Ġ= ĠSw iss System Match Generator ( players ) ĊĊĠĠĠĠĠĠĠ Ġval Ġmatches Ġ= Ġmatch Generator . generate () ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( 2 , Ġmatches . size ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Match ( Player (" Dan "), ĠPlayer (" Ge an ina ")), Ġmatches [ 0 ]) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Match ( Player (" Fr ank "), ĠPlayer (" K en ny ")), Ġmatches [ 1 ]) ĊĠĠĠ Ġ} Ċ } Ċ