3031323334353637383940
//see ThreadsShareGenerouslyStubbedMockTest Answer a; synchronized(answers) { a = answers.size() == 1 ? answers.peek() : answers.poll(); } return a.answer(invocation); } public void addAnswer(Answer answer) { answers.add(answer); }
2930313233343536373839