@Test
public void badRequest() {

    TestSubscriber<Integer> ts = new TestSubscriber<Integer>(0L);
    ScalarSubscription<Integer> sc = new ScalarSubscription<Integer>(ts, 1);
    List<Throwable> errors = TestHelper.trackPluginErrors();
    try {
        sc.request(-99);
        TestHelper.assertError(errors, 0, IllegalArgumentException.class, "n > 0 required but it was -99");
    } finally {
        RxJavaPlugins.reset();
    }
}