title: EasyMock tests failing with java.lang.NoClassDefFoundError org.easymock.internal.ClassProxyFactory$2 on Java 17
body: <p>Since upgradting to Java 17 my unit test that are using EasyMock are failing with to the following exception</p>
  <blockquote>
  <p>java.lang.NoClassDefFoundError: Could not initialize class
  org.easymock.internal.ClassProxyFactory$2     at
  org.easymock.internal.ClassProxyFactory.createEnhancer(ClassProxyFactory.java:233)
  at
  org.easymock.internal.ClassProxyFactory.createProxy(ClassProxyFactory.java:165)
  at
  org.easymock.internal.MocksControl.createMock(MocksControl.java:107)
  at
  org.easymock.internal.MocksControl.createMock(MocksControl.java:80)
  at org.easymock.EasyMockSupport.mock(EasyMockSupport.java:77)   at
  org.easymock.EasyMockSupport.createMock(EasyMockSupport.java:364)</p>
  </blockquote>
  <p>I am running the tests using maven-surefire-plugin.</p>