title: Sonarqube test case rule does not take @Test annotation into account
body: <p>Sonarqube generates issues as </p>
  
  <blockquote>
    <p>TestCases should contain tests</p>
  </blockquote>
  
  <p>regarding that test classes does not have any tests inside but there are methods marked with <code>@Test</code> annotation and classes annotated with <code>@RunWith(SpringJunit4ClassRunner.class)</code>.</p>
  
  <p>I have no problem running TestSuites and importing unit test and coverage reports into sonarqube. I checked sonarqube source code and it should find annotations but unfortunately it does not. Rule id for the mentioned issue is S2187. </p>
  
  <p>Is there a configuration for this rule to find annotated methods or is a known issue?</p>
  
  <p>Edit - config:</p>
  
  <pre><code>sonar.projectKey=x
  sonar.projectName=x
  sonar.projectVersion=1.0 
  sonar.modules=a,b,c
  a.sonar.projectBaseDir=modules/a
  b.sonar.projectBaseDir=modules/b
  c.sonar.projectBaseDir=modules/c
  sonar.sources=src
  sonar.tests=test
  sonar.java.binaries=../**/classes/production,../**/classes/test
  sonar.java.libraries=../../libraries/repository
  sonar.junit.reportsPath=junit/
  sonar.java.coveragePlugin=jacoco
  sonar.jacoco.reporthPath=coverage/jacoco.exec
  sonar.language=java
  sonar.sourceEncoding=UTF-8
  </code></pre>