@Test
public void testEmptyAverageFloats() throws Throwable {

    Observable<Float> src = Observable.empty();
    averageFloats(src).subscribe(wf);
    verify(wf, never()).onNext(anyFloat());
    verify(wf, times(1)).onError(isA(IllegalArgumentException.class));
    verify(wf, never()).onCompleted();
}