title: java.lang.NoClassDefFoundError: org/apache/lucene/search/FieldComparatorSource
body: <pre><code>customField = Mockito.mock(CustomField.class);
  </code></pre>
  
  <p>While mocking the CustomField I am getting the following error:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/apache/lucene/search/FieldComparatorSource
  at java.lang.Class.getDeclaredMethods0(Native Method)
  at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
  at java.lang.Class.getDeclaredMethods(Unknown Source)
  at org.mockito.cglib.core.ReflectUtils.addAllMethods(ReflectUtils.java:349)
  at org.mockito.cglib.core.ReflectUtils.addAllMethods(ReflectUtils.java:356)
  at org.mockito.cglib.proxy.Enhancer.getMethods(Enhancer.java:427)
  at org.mockito.cglib.proxy.Enhancer.generateClass(Enhancer.java:457)
  at org.mockito.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
  at org.mockito.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:217)
  at org.mockito.cglib.proxy.Enhancer.createHelper(Enhancer.java:378)
  at org.mockito.cglib.proxy.Enhancer.createClass(Enhancer.java:318)
  at org.mockito.internal.creation.cglib.ClassImposterizer.createProxyClass(ClassImposterizer.java:123)
  at org.mockito.internal.creation.cglib.ClassImposterizer.imposterise(ClassImposterizer.java:57)
  at org.mockito.internal.creation.cglib.ClassImposterizer.imposterise(ClassImposterizer.java:49)
  at org.mockito.internal.creation.cglib.CglibMockMaker.createMock(CglibMockMaker.java:24)
  at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:33)
  at org.mockito.internal.MockitoCore.mock(MockitoCore.java:59)
  at org.mockito.Mockito.mock(Mockito.java:1285)
  at org.mockito.Mockito.mock(Mockito.java:1163)
  at ut.com.sony.secdev.jiralastCommentTestCase.MyComponentUnitTest.getupdateCustomFieldValue(MyComponentUnitTest.java:191)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  Caused by: java.lang.ClassNotFoundException: org.apache.lucene.search.FieldComparatorSource
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  ... 49 mor
  </code></pre>
  
  <p>How can I resolve the issue?</p>