    @Test
    public void testWarmup() throws Exception {

        Observable
                .just(1)
                .doOnNext(RxActions.act(doAction(sum), doAction(sum), doAction(sum)))
                .subscribe(
                        RxActions.act(doAction(sum), doAction(sum)),
                        RxActions.act(doError(arrayError), doError(arrayError),
                                doError(arrayError), doError(arrayError), doError(arrayError),
                                doError(arrayError)),
                        RxActions.act(doComplete(sum), doComplete(sum), doComplete(sum),
                                doComplete(sum)));
        Assert.assertEquals(9, sum[0]);
        Assert.assertEquals(6, arrayError.size());
    }