org_apache_struts2_convention_PackageBasedActionConfigBuilderTest_java
org.easymock.internal.MocksBehavior
@Override
    public final Result addActual(Invocation actual) {
        Result stubOrNice;
        int initialPosition = this.position;
        while (this.position < this.behaviorLists.size()) {
            Result result = this.behaviorLists.get(this.position).addActual(actual);
            if (result != null) {
                return result;
            }
            if (!this.behaviorLists.get(this.position).verify()) break;
            ++this.position;
        }
        if ((stubOrNice = this.getStubResult(actual)) == null && this.nice) {
            stubOrNice = Result.createReturnResult(RecordState.emptyReturnValueFor(actual.getMethod().getReturnType()));
        }
        int endPosition = this.position;
        this.position = initialPosition;
        if (stubOrNice != null) {
            actual.validateCaptures();
            actual.clearCaptures();
            return stubOrNice;
        }
        if (endPosition == this.behaviorLists.size()) {
            --endPosition;
        }
        StringBuilder errorMessage = new StringBuilder(70 * (endPosition - initialPosition + 1));
        errorMessage.append("\n  Unexpected method call ").append(actual.toString());
        ArrayList<ErrorMessage> messages = new ArrayList<ErrorMessage>();
        int matches = 0;
        for (int i = initialPosition; i <= endPosition; ++i) {
            List<ErrorMessage> thisListMessages = this.behaviorLists.get(i).getMessages(actual);
            messages.addAll(thisListMessages);
            for (ErrorMessage m : thisListMessages) {
                if (!m.isMatching()) continue;
                ++matches;
            }
        }
        if (matches > 1) {
            errorMessage.append(". Possible matches are marked with (+1):");
        } else {
            errorMessage.append(":");
        }
        for (ErrorMessage m : messages) {
            m.appendTo(errorMessage, matches);
        }
        this.unexpectedCalls.add(actual);
        throw new AssertionErrorWrapper(new AssertionError(errorMessage));
    }
 -> java.util.List.size(): int -> java.util.List.get(int): java.lang.Object -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.clear(): void -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.lang.reflect.Method.equals(java.lang.Object): boolean -> java.util.List.size(): int -> java.util.List.get(int): java.lang.Object -> java.lang.Object.equals(java.lang.Object): boolean -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.clear(): void -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.clear(): void -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.clear(): void -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object -> java.lang.reflect.Method.equals(java.lang.Object): boolean -> java.util.List.size(): int -> java.util.List.get(int): java.lang.Object -> java.lang.Object.equals(java.lang.Object): boolean -> java.util.List.get(int): java.lang.Object -> java.lang.Object.equals(java.lang.Object): boolean -> java.util.List.get(int): java.lang.Object -> java.lang.Object.equals(java.lang.Object): boolean -> java.util.List.get(int): java.lang.Object -> java.lang.Object.equals(java.lang.Object): boolean -> java.lang.String.equals(java.lang.Object): boolean -> java.lang.String.equals(java.lang.Object): boolean -> java.util.List.get(int): java.lang.Object -> java.util.List.get(int): java.lang.Object -> java.util.List.size(): int -> java.util.List.size(): int -> java.util.List.size(): int -> java.util.List.get(int): java.lang.Object -> java.util.List.get(int): java.lang.Object -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.clear(): void
 [CALL] -> java.util.List.size(): int -> java.util.List.get(int): java.lang.Object [CALL] -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] [EXIT] [CALL] -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] [EXIT] [CALL] [EXIT] -> java.util.Iterator.hasNext(): boolean [EXIT] [CALL] -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.clear(): void [EXIT] -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] [EXIT] [CALL] -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] [EXIT] [CALL] [EXIT] [EXIT] [CALL] [EXIT] [CALL] [CALL] [EXIT] [CALL] [EXIT] [CALL] [EXIT] [CALL] [EXIT] -> java.lang.reflect.Method.equals(java.lang.Object): boolean [CALL] [EXIT] [CALL] -> java.util.List.size(): int -> java.util.List.get(int): java.lang.Object [CALL] -> java.lang.Object.equals(java.lang.Object): boolean [EXIT] [EXIT] [EXIT] [CALL] -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.clear(): void [EXIT] -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] [EXIT] [CALL] -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] [EXIT] [CALL] [EXIT] -> java.util.Iterator.hasNext(): boolean [EXIT] [CALL] -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.clear(): void [EXIT] -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] [EXIT] [CALL] -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] [EXIT] [CALL] [EXIT] -> java.util.Iterator.hasNext(): boolean [EXIT] [CALL] -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.clear(): void [EXIT] -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] [EXIT] [CALL] -> java.util.List.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Iterator.next(): java.lang.Object [CALL] [EXIT] [CALL] [EXIT] [EXIT] [CALL] [EXIT] [CALL] [CALL] [EXIT] [CALL] [EXIT] [CALL] [EXIT] [CALL] [EXIT] -> java.lang.reflect.Method.equals(java.lang.Object): boolean [CALL] [EXIT] [CALL] -> java.util.List.size(): int -> java.util.List.get(int): java.lang.Object [CALL] -> java.lang.Object.equals(java.lang.Object): boolean [EXIT] -> java.util.List.get(int): java.lang.Object [CALL] -> java.lang.Object.equals(java.lang.Object): boolean [EXIT] -> java.util.List.get(int): java.lang.Object [CALL] -> java.lang.Object.equals(java.lang.Object): boolean [EXIT] -> java.util.List.get(int): java.lang.Object [CALL] -> java.lang.Object.equals(java.lang.Object): boolean [CALL] [CALL] [EXIT] [CALL] [EXIT] -> java.lang.String.equals(java.lang.Object): boolean [CALL] [EXIT] [CALL] [EXIT] -> java.lang.String.equals(java.lang.Object): boolean [CALL] [EXIT] -> java.util.List.get(int): java.lang.Object [CALL] [EXIT] -> java.util.List.get(int): java.lang.Object [CALL] [EXIT] -> java.util.List.size(): int [CALL] [EXIT] -> java.util.List.size(): int [EXIT] [EXIT] [EXIT] [EXIT] [CALL] [EXIT] [CALL] -> java.util.List.size(): int -> java.util.List.get(int): java.lang.Object [CALL] [EXIT] [CALL] [EXIT] -> java.util.List.get(int): java.lang.Object [EXIT] [CALL] -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean [EXIT] [CALL] -> java.util.Collection.iterator(): java.util.Iterator -> java.util.Iterator.hasNext(): boolean -> java.util.Collection.clear(): void [EXIT] [EXIT] [EXIT]