src/main/java/org/fest/assertions/ListAssert.java
public @NotNull ListAssert startsWith(@NotNull Object... sequence) {
    isNotNull();
    checkNotNull(sequence);
    int sequenceSize = sequence.length;
    int listSize = actualGroupSize();
    if (sequenceSize == 0 && listSize == 0) {
      return this;
    }
    if (sequenceSize == 0 && listSize != 0) {
      failIfNotStartingWithSequence(sequence);
    }
    if (listSize < sequenceSize) {
      failIfNotStartingWithSequence(sequence);
    }
    for (int i = 0; i < sequenceSize; i++) {
      if (!areEqual(sequence[i], actual.get(i))) {
        failIfNotStartingWithSequence(sequence);
      }
    }
    return this;
  }
public @NotNull ListAssert startsWith(@NotNull Object... sequence) {
    isNotNull();
    checkNotNull(sequence);
    int sequenceSize = sequence.length;
    int listSize = actualGroupSize();
    if (sequenceSize == 0 && listSize == 0) {
      return this;
    }
    if (sequenceSize == 0 && listSize != 0) {
      failIfNotStartingWithSequence(sequence);
    }
    if (listSize < sequenceSize) {
      failIfNotStartingWithSequence(sequence);
    }
    for (int i = 0; i < sequenceSize; i++) {
      if (!areEqual(sequence[i], actual.get(i))) {
        failIfNotStartingWithSequence(sequence);
      }
    }
    return this;
  }
Verifies that the actual {@code List} starts with the given sequence of objects, without any other objects between
them. Same as {@link #containsSequence}, but verifies also that first given object is also first element of
{@code List}.

@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} is not empty and with the given sequence of objects is empty.
@throws AssertionError if the actual {@code List} does not start with the given sequence of objects.