LeoColman
class MyClass(val file: File) { fun foo() { file.inputStream() } } val file = mockk<File> every { file.inputStream() } returns myInputStream MyClass(file).foo() -> This will work inside the mock