mockingProgress.getDebuggingInfo().addPotentiallyUnstubbed(invocationMatcher);
}
if (stubbedInvocation != null) {
mockingProgress.getDebuggingInfo().reportUsedStub(invocationMatcher);
stubbedInvocation.captureArgumentsFrom(invocation);
return stubbedInvocation.answer(invocation);
} else {
Object ret = mockSettings.getDefaultAnswer().answer(invocation);
//redo setting invocation for potential stubbing in case of partial mocks / spies.