@Test
public void isBug() {

    assertFalse(RxJavaPlugins.isBug(new RuntimeException()));
    assertFalse(RxJavaPlugins.isBug(new IOException()));
    assertFalse(RxJavaPlugins.isBug(new InterruptedException()));
    assertFalse(RxJavaPlugins.isBug(new InterruptedIOException()));
    assertTrue(RxJavaPlugins.isBug(new NullPointerException()));
    assertTrue(RxJavaPlugins.isBug(new IllegalArgumentException()));
    assertTrue(RxJavaPlugins.isBug(new IllegalStateException()));
    assertTrue(RxJavaPlugins.isBug(new MissingBackpressureException()));
    assertTrue(RxJavaPlugins.isBug(new ProtocolViolationException("")));
    assertTrue(RxJavaPlugins.isBug(new UndeliverableException(new TestException())));
    assertTrue(RxJavaPlugins.isBug(new CompositeException(new TestException())));
    assertTrue(RxJavaPlugins.isBug(new OnErrorNotImplementedException(new TestException())));
}