title: How do I check that AssertionException is thrown in a Clojure test?
body: <p>I am trying to write a unit test for my <code>:pre</code> and <code>:post</code> conditions, and my first thought was to do this:</p>
  
  <pre><code>(ns myproj.battle-test
    (:use clojure.test
          myproj.battle))
  
  (deftest lose-only-positive-amount-of-health
    (let [actor {:health 100}]
      (is (thrown? AssertionException
            (:health (lose-health actor -5))))))
  </code></pre>
  
  <p>But I can't work out how to reference <code>AssertionException</code> from my test file, and get an exception instead:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Unable to resolve classname: AssertionException
  </code></pre>
  
  <p>I've tried various things (and Google hasn't been helpful, presumably because this is far too simple a question) but without any luck, so how do I check that <code>AssertionException</code> was thrown?</p>
  
  <p>I realise this is very much a beginner's question; these are my first few lines of Clojure :)</p>