code: private static Object tryHandleEqualsMethod(MockInvocation mockInvocation) {
  
          // Fix for Issue http://code.google.com/p/powermock/issues/detail?id=88
          // For some reason the method call to equals() on final methods is
          // intercepted and during the further processing in Mockito the same
          // equals() method is called on the same instance. A StackOverflowError
          // is the result. The following fix changes this by checking if the
          // method to be called is a final equals() method. In that case the
          // original method is called by returning PROCEED.
  
          if (mockInvocation.getMethod().getParameterTypes().length == 1
                      && mockInvocation.getMethod().getParameterTypes()[0] == Object.class
                      && Modifier.isFinal(mockInvocation.getMethod().getModifiers())) {
              return PROCEED;
          }
  
          if (calledFromMockito()){
              return PROCEED;
          }
  
          return null;
      }
docs: /*
  Method handles exception cases with equals method.