Reproducer for a bug in mockk 1.13.12 mocking an interface with a val returning a value class wrapped in Result worked perfectly using mockk-1.13.9. In mockk-1.13.12 we get a class cast exception. See ReproducerSpec. Related issue: mockk/mockk#1073