@Test
public void assertManualResetWorks() throws Exception {
ExpectNewDemo tested = new ExpectNewDemo();
MyClass myClassMock = createMock(MyClass.class);
expectNew(MyClass.class).andReturn(myClassMock);
expect(myClassMock.getMessage()).andReturn("message");
replayAll();
String message = tested.getMessage();
verifyAll();
assertEquals("message", message);
reset(myClassMock);
reset(MyClass.class);
expectNew(MyClass.class).andReturn(myClassMock);
expect(myClassMock.getMessage()).andReturn("message");
replayAll();
message = tested.getMessage();