@PrepareForTest(EqualsWithGetClass.class)
public class EqualsWithGetClassTest {
@Test
public void callingGetClassOnAMockWorksWhenTheCallWasUnexpected() throws Exception {
EqualsWithGetClass mock1 = createMock(EqualsWithGetClass.class);
replayAll();
assertTrue(mock1.getClass().getName().startsWith(EqualsWithGetClass.class.getName()));
}