public static boolean sameProxyClass(Object proxy1,Object proxy2){
  return (proxy1.getClass() == proxy2.getClass() || (Proxy.isProxyClass(proxy2.getClass()) && equalInterfaces(proxy1,proxy2)));
}

public static boolean sameProxyClass ( Object proxy1 , Object proxy2 ) { return ( proxy1 . getClass ( ) == proxy2 . getClass ( ) || ( Proxy . isProxyClass ( proxy2 . getClass ( ) ) && equalInterfaces ( proxy1 , proxy2 ) ) ) ; }
returns true if proxy2 is a generated proxy ( proxy1 is assumed to be one ) and the classes of both proxies implement the same ordered list of interfaces , and returns false otherwise .
