I have a method returning void
and I know how to verify if the method has been called:
MyValidator validator = createMock(MyValidator.class);
expect(validator.validate());
replay(validator);
classUnderTest.submit(); //this will call validator.validate()
verify(validator);
But I also want the real method MyValidator.validate() to be executed. How can I achieve this?