<@U0EJ7JGPQ>: what is a problem with the first one...
# announcements
c
@dnovikov: what is a problem with the first one? The following works for me:
Copy code
class MyTest {
    @Test
    fun ttt() {
        val o = Mockito.mock(C::class.java)
        Mockito.`when`(o.p).thenReturn(99)

        assertEquals(99, o.p)
    }
}

interface C {
    val p: Int
}