title: mockito-groovy-suppport not working
body: <p>I am writing my Junit test cases for Groovy using Mockito jar, but it is giving me following exception</p>
  
  <pre><code>java.lang.NullPointerException
      at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
      at  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
  </code></pre>
  
  <p>So I have added mockito-groovy-support 1.3 version jar. but I am still facing the same issue. below is my code</p>
  
  <pre><code>package test.service
  import org.junit.Test
  import org.junit.runner.RunWith
  import org.mockito.InjectMocks
  import org.mockito.Mock
  import org.mockito.junit.MockitoJUnitRunner
  import static org.mockito.Mockito.when;
  
  //@RunWith(MockitoJUnitRunner.class)
  class SyncImplTest {
  @Before
  public void init() {
      MockitoAnnotations.initMocks(this);
  }
      @InjectMocks
      SyncThreatImpl  fixture;
  
      @Mock
      RpcConfigurationLoader rpcConfigurationLoader
  
      @Test
      public void testRpcConfig(){
          RpcApiInfo rpcApiInfo =  new RpcApiInfo();
          when(rpcConfigurationLoader.loadConfiguration()).thenReturn(rpcApiInfo) //here m getting NPE
      }
  
  
  }
  </code></pre>
  
  <p>this is my ss of the jars am using<a href="https://i.stack.imgur.com/z9YQd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z9YQd.png" alt="enter image description here"></a></p>