/**
* For testing purposes only. Is not the part of main API.
* @return last invocation
*/
public Invocation getLastInvocation() {
OngoingStubbingImpl ongoingStubbing = ((OngoingStubbingImpl) mockingProgress.pullOngoingStubbing());
List<Invocation> allInvocations = ongoingStubbing.getRegisteredInvocations().getAll();
return allInvocations.get(allInvocations.size()-1);
}