``` @Before fun setup() { val instant = Instant.o...
# mockk
p
Copy code
@Before
fun setup() {

val instant = Instant.ofEpochMilli(1572400000000)
mockkStatic(Instant::class) {
    every { Instant.now() } returns instant
}

}
d
you can look at the implementation of mockkStatic. You can see that with lambda it uses try finally block and unmocks it
if you use it this way
you can use it without lambda block and it will not unmock