java.lang.noclassdeffounderror for JComponent mock class
<p>I'm getting a java.lang.noclassdeffounderror when trying to create a mock class for Component using EasyMock. </p>

<pre><code>private Component mockComponent;

@SuppressWarnings("restriction")
@Before 
public void setUp() 
{ 
   mockComponent = EasyMock.createMock(Component.class); 
}
</code></pre>
