title: Mockito mock of SecurityManager throwing an exception
body: <p>I'm trying to mock the <code>SecurityManager</code> class.  When I run the following code, Mockito throws an exception:</p>
  
  <pre><code>@After
  public void tearDown()
  {
      SecurityManager securityManagerMock = mock(SecurityManager.class);
      System.setSecurityManager(securityManagerMock);
  }
  </code></pre>
  
  <p>The stack trace is the following lines repeated indefinitely:</p>
  
  <pre><code>at org.mockito.internal.creation.MethodInterceptorFilter.intercept(MethodInterceptorFilter.java:42)
  at $java.lang.SecurityManager$$EnhancerByMockitoWithCGLIB$$3ceafc0f.checkMemberAccess(&lt;generated&gt;)
  at java.lang.Class.checkMemberAccess(Class.java:2157)
  at java.lang.Class.getDeclaredField(Class.java:1879)
  at org.mockito.internal.creation.cglib.CGLIBHacker.reflectOnCreateInfo(CGLIBHacker.java:44)
  at org.mockito.internal.creation.cglib.CGLIBHacker.setMockitoNamingPolicy(CGLIBHacker.java:20)
  at org.mockito.internal.creation.MethodInterceptorFilter.intercept(MethodInterceptorFilter.java:42)
  at $java.lang.SecurityManager$$EnhancerByMockitoWithCGLIB$$3ceafc0f.checkMemberAccess(&lt;generated&gt;)
  at java.lang.Class.checkMemberAccess(Class.java:2157)
  at java.lang.Class.getDeclaredField(Class.java:1879)
  at org.mockito.internal.creation.cglib.CGLIBHacker.reflectOnCreateInfo(CGLIBHacker.java:44)
  at org.mockito.internal.creation.cglib.CGLIBHacker.setMockitoNamingPolicy(CGLIBHacker.java:20)
  at org.mockito.internal.creation.MethodInterceptorFilter.intercept(MethodInterceptorFilter.java:42)
  at $java.lang.SecurityManager$$EnhancerByMockitoWithCGLIB$$3ceafc0f.checkMemberAccess(&lt;generated&gt;)
  at java.lang.Class.checkMemberAccess(Class.java:2157)
  at java.lang.Class.getDeclaredField(Class.java:1879)
  at org.mockito.internal.creation.cglib.CGLIBHacker.reflectOnCreateInfo(CGLIBHacker.java:44)
  at org.mockito.internal.creation.cglib.CGLIBHacker.setMockitoNamingPolicy(CGLIBHacker.java:20)
  </code></pre>
  
  <p>What am I doing wrong here?</p>