mockk Object
inline fun mockkObject(vararg objects: Any, recordPrivateCalls: Boolean = false): <Error class: unknown class>
Builds an Object mock. Any mocks of this exact object are cancelled before it's mocked.
This lets you mock object methods with every.
See also
To manually cancel mock
Samples
Builds a static mock and unmocks it after the block has been executed.