public void addAnswer(Answer answer, boolean isConsecutive) {
    Invocation invocation = invocationForStubbing.getInvocation();
    mockingProgress.stubbingCompleted(invocation);
    AnswersValidator answersValidator = new AnswersValidator();
    answersValidator.validate(answer, invocation);

    synchronized (stubbed) {
      if (isConsecutive) {
        stubbed.getFirst().addAnswer(answer);
      } else {
        stubbed.addFirst(new StubbedInvocationMatcher(invocationForStubbing, answer));
      }
    }
  }
 public void setInvocationForPotentialStubbing(InvocationMatcher invocation) {
   registeredInvocations.add(invocation.getInvocation());
   this.invocationForStubbing = invocation;
 }
 public Object invokedMock() {
   return invocationForStubbing.getInvocation().getMock();
 }