package Ġio . null ables . api . playground . patterns Ċ Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ object ĠPrinter Driver Ġ{ ĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġprintln (" Initializing Ġwith Ġobject : Ġ$ this ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġprint (): ĠPrinter Driver Ġ= ĊĠĠĠĠĠĠĠ Ġapply Ġ{ Ġprintln (" Print ing Ġwith Ġobject : Ġ$ this ") Ġ} Ċ } Ċ Ċ class ĠSingleton Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun ĠSingleton () Ġ{ ĊĠĠĠĠĠĠĠ Ġprintln (" Start ") ĊĠĠĠĠĠĠĠ Ġval Ġprinter First Ġ= ĠPrinter Driver . print () ĊĠĠĠĠĠĠĠ Ġval Ġprinter Second Ġ= ĠPrinter Driver . print () ĊĊĠĠĠĠĠĠĠ ĠassertThat ( printer First ). is Same As ( Printer Driver ) ĊĠĠĠĠĠĠĠ ĠassertThat ( printer Second ). is Same As ( Printer Driver ) ĊĠĠĠ Ġ} Ċ } Ċ