title: JUnit 4 annotations not working when extending AndroidTestCase class
body: <p>Hello I am doing the testing section for my sqlite db. I have used JUnit before but I learned I have to extend <code>AndroidTestCase</code> to get a mock context. However, when I try to catch exceptions (like in JUnit) the compiler is complaining. Why is this since Android ships with JUnit 4 now?</p>
  
  <p>class example for reference: </p>
  
  <pre><code>public class MyTest extends AndroidTestCase {
  
     @Test(expected=NullPointerException.class) //&lt;-- this does not work
     public void testRandomMethod() {
       callRandomMethod()  //Throws NullPointerException
     }
  }
  </code></pre>