title: Updating junit gives compilation error at @Rule and TestName
body: <p>Have been using <code>@Rule</code> from <code>junit</code> using <code>4.12</code>. But today updated to 4.5</p>
  
  <pre><code>    &lt;!-- https://mvnrepository.com/artifact/junit/junit --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.5&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Getting error on compiling the code on </p>
  
  <pre><code>@Rule
  public TestName name = new TestName();
  </code></pre>
  
  <blockquote>
    <p>package org.junit.rules does not exist </p>
    
    <p>cannot find symbol [ERROR] symbol:   class Rule [ERROR] location: package org.junit</p>
  </blockquote>
  
  <p>Has this been removed? Any alternatives to it?</p>