@Test(expected = IllegalStateException.class)
public void testMockDateWithEasyMockFails() {
Date someDate = new Date();
MocksControl c = (MocksControl) org.easymock.EasyMock.createControl();
Date date = c.createMock(Date.class, new Method[0]);
EasyMock.expect(date.after(someDate)).andReturn(false);
Assert.fail("EasyMock with no methods mocked should not be possible to mock");
}
@Test