package Ġcom . sage had nt . pl asm id Ċ Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . After Each Ċ import Ġorg . junit . jupiter . api . Repeated Test Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . junit . jupiter . api . assert Throws Ċ import Ġorg . junit . jupiter . api . extension . Extend With Ċ import Ġorg . mockito . Mockito .` when ` Ċ import Ġorg . mockito . Mockito . mock Ċ Ċ @ Extend With ( Pl asm id Test Extension :: class ) Ċ class ĠPl asm id Test Extension Test Ġ{ ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠThe ĠPl asm id Test Extension Ġshould Ġautomatically Ġclear Ġdown Ġthe Ġbindings Ġafter Ġeach Ġtest . ĠIf Ġit Ġdoesn 't , ĊĠĠĠĠ Ġ* Ġconfigure Bindings Ġshould Ġthrow Ġan Ġerror Ġon Ġthe Ġsecond Ġand Ġthird Ġtests . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġ@ Repeated Test ( 3 ) ĊĠĠĠ Ġfun Ġ` bindings Ġshould Ġbe Ġcleared Ġdown Ġbetween Ġtests `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfile System Ġ= ĠFileSystem () ĊĠĠĠĠĠĠĠ Ġconfigure Bindings Ġ{ Ġbind Singleton ( file System ) Ġ} ĊĠĠĠĠĠĠĠ ĠassertThat ( inject < FileSystem > ()). isEqualTo ( file System ) ĊĠĠĠ Ġ} Ċ }