@Test
public void testSkipLastWithZeroCount() {

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