code in question : ``` @Test fun testBadClass(...
# getting-started
v
code in question :
Copy code
@Test
    fun testBadClass() {
        val bad = suspend {
            checkBadClassTwice()
            getBadClassViaSuspend()
        }
        var result: BadClass? = null
        bad.startCoroutine(object : Continuation<BadClass> {    // line 56
            override val context: CoroutineContext = EmptyCoroutineContext

            override fun resume(value: BadClass) {
                assertTrue(result == null)
                result = value
            }

            override fun resumeWithException(exception: Throwable) {
                throw exception
            }
        })
        assertTrue(result is BadClass)
        assertEquals(3, counter)
    }