createMock

abstract fun <T : Any> createMock(clazz: KClass<T>): T

Returns a new mock of type T.