return new StubSequence(stubs);
}
protected InvocationMatcher invokeOnOperation(final String opName) {
// Decides which method to call the TestService mock based on the operation.
return new StatelessInvocationMatcher() {
public boolean matches(Invocation invocation) {
return invocation.invokedMethod.getName().equals("invokePartnerUnreliable") &&
invocation.parameterValues.size() == 1 &&
((PartnerRoleMessageExchange) invocation.parameterValues.get(0)).getOperation().getName().equals(opName);
}