@Test
public void testSkipWithIndex() {

    Observable<Integer> src = Observable.from(1, 2, 3, 4, 5);
    Observable.create(skipWhileWithIndex(src, INDEX_LESS_THAN_THREE)).subscribe(w);
    InOrder inOrder = inOrder(w);
    inOrder.verify(w, times(1)).onNext(4);
    inOrder.verify(w, times(1)).onNext(5);
    inOrder.verify(w, times(1)).onCompleted();
    inOrder.verify(w, never()).onError(any(Throwable.class));
}