Some folks seem to have some success with a varian...
# exposed
a
Some folks seem to have some success with a variant of mockito for kotlin but I haven't tried it. Personally I have an unorthodox view to testing. I try to avoid using mocks ever and prefer black box integration tests to unit tests.