title: error: Type mismatch: cannot convert from Test to Annotation
body: <p>I am newbie to junit Mockito framework, I have mocked the Dependency Injection using powermock framework, but I am getting error in eclipse on <code>@Test</code> annotation the error is <strong>"Type mismatch: cannot convert from Test to Annotation"</strong></p>
  
  <pre><code>package org.singh.util.MockitoDemo;
  
  import static org.mockito.Matchers.anyString;
  import static org.powermock.api.mockito.PowerMockito.doNothing;
  import static org.powermock.api.mockito.PowerMockito.mockStatic;
  import static org.powermock.api.mockito.PowerMockito.when;
  import static org.powermock.api.support.membermodification.MemberMatcher.method;
  
  import org.junit.*;
  import org.junit.runner.RunWith;
  import org.powermock.api.mockito.PowerMockito;
  import org.powermock.core.classloader.annotations.PrepareForTest;
  import org.powermock.modules.junit4.PowerMockRunner;
  
  @RunWith(PowerMockRunner.class)
  @PrepareForTest({ExampleUtil.class, ExamplePojo.class})
  public class ExamplePojoTest{
  
      @Test
      public void testMethodMakingPrivateMethodCall() throws Exception {
          ExamplePojo spyExamplePojo = PowerMockito.spy(new ExamplePojo());
          when(spyExamplePojo, method(ExamplePojo.class, "privateMethod", String.class)).withArguments(anyString()).thenReturn("test test");
          String result = spyExamplePojo.methodMakingPrivateMethodCall("test");
          Assert.assertEquals("test test", result);
      }
  
  }
  </code></pre>
  
  <p>maven dependencies are </p>
  
  <pre><code>&lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.11&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.powermock&lt;/groupId&gt;
              &lt;artifactId&gt;powermock-api-mockito&lt;/artifactId&gt;
              &lt;version&gt;1.6.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.powermock&lt;/groupId&gt;
              &lt;artifactId&gt;powermock-module-junit4&lt;/artifactId&gt;
              &lt;version&gt;1.6.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>