src/main/java/org/fest/assertions/ListAssert.java
public @NotNull ListAssert containsSequence(@NotNull Object... sequence) {
    isNotNull();
    checkNotNull(sequence);
    int sequenceSize = sequence.length;
    if (sequenceSize == 0) {
      return this;
    }
    int indexOfFirst = actual.indexOf(sequence[0]);
    if (indexOfFirst == -1) {
      failIfSequenceNotFound(sequence);
    }
    int listSize = actualGroupSize();
    for (int i = 0; i < sequenceSize; i++) {
      int actualIndex = indexOfFirst + i;
      if (actualIndex > listSize - 1) {
        failIfSequenceNotFound(sequence);
      }
      if (!areEqual(sequence[i], actual.get(actualIndex))) {
        failIfSequenceNotFound(sequence);
      }
    }
    return this;
  }
public @NotNull ListAssert containsSequence(@NotNull Object... sequence) {
    isNotNull();
    checkNotNull(sequence);
    int sequenceSize = sequence.length;
    if (sequenceSize == 0) {
      return this;
    }
    int indexOfFirst = actual.indexOf(sequence[0]);
    if (indexOfFirst == -1) {
      failIfSequenceNotFound(sequence);
    }
    int listSize = actualGroupSize();
    for (int i = 0; i < sequenceSize; i++) {
      int actualIndex = indexOfFirst + i;
      if (actualIndex > listSize - 1) {
        failIfSequenceNotFound(sequence);
      }
      if (!areEqual(sequence[i], actual.get(actualIndex))) {
        failIfSequenceNotFound(sequence);
      }
    }
    return this;
  }
Verifies that the actual {@code List} contains the given sequence of objects, without any other objects between
them.

@param sequence the sequence of objects to look for.
@return this assertion object.
@throws AssertionError if the actual {@code List} is {@code null}.
@throws AssertionError if the given array is {@code null}.
@throws AssertionError if the actual {@code List} does not contain the given sequence of objects.