title: Test expected exceptions in Kotlin
body: <p>In Java, the programmer can specify expected exceptions for JUnit test cases like this:</p>
  <pre><code>@Test(expected = ArithmeticException.class)
  public void omg()
  {
      int blackHole = 1 / 0;
  }
  </code></pre>
  <p>How would I do this in Kotlin? I have tried two syntax variations, but none of them worked:</p>
  <pre><code>import org.junit.Test
  
  // ...
  
  @Test(expected = ArithmeticException) fun omg()
      Please specify constructor invocation;
      classifier 'ArithmeticException' does not have a companion object
  
  @Test(expected = ArithmeticException.class) fun omg()
                              name expected ^
                                              ^ expected ')'
  </code></pre>