@Test
public void testSkipLast2() {

    Observable<String> w = Observable.from("one", "two");
    Observable<String> observable = Observable.create(skipLast(w, 2));
    @SuppressWarnings("unchecked")
    Observer<String> observer = mock(Observer.class);
    observable.subscribe(observer);
    verify(observer, never()).onNext(any(String.class));
    verify(observer, never()).onError(any(Throwable.class));
    verify(observer, times(1)).onCompleted();
}