title: EasyMock Not making a distinction between subclasses
body: <p>Given the following</p>
  
  <pre><code>class Event{
  }
  
  class SpecialEvent extends Event{
  
  }
  
  class OtherEvent extends Event{
  
  }
  
  class EventPublisher{
     public publish(Event e){
     }
  }
  
  @test
  testBlah{
     myService = new MyService();
  
     mockEvent = createMock(EventPublisher)
     mySercice.setEventPublisher(mockEvent);
     mockEvent.publish(anyObject(SpecialEvent.class));
     expectLastCall.once();
     replay(mockEvent);
     myServce.doSomethingThatCauesesSpecialEventToBePublished();
     verify(mockEvent);
  }
  </code></pre>
  
  <p>If myService.doSomething.... Publishes an event that is NOT SpecialEvent.class it does not fail the test as long as the event extends from Event. Is there a way to ensure that this fails?</p>