@Test
public void producedMore() {

    List<Throwable> list = TestHelper.trackPluginErrors();
    try {
        AtomicLong requested = new AtomicLong(1);
        assertEquals(0, BackpressureHelper.produced(requested, 2));
        TestHelper.assertError(list, 0, IllegalStateException.class, "More produced than requested: -1");
    } finally {
        RxJavaPlugins.reset();
    }
}