As we probably know, by default Kotlin class once defined, it is final, unless it is explicitly declared open.
This would post a challenge when we want to Mock it using Mockito. We need to explicitly declare it as open. Is there a way we could avoid declaring it as open while able to Mock it for our testing?