@Test
public void onSubscribeCrashes() {

    List<Throwable> list = TestHelper.trackPluginErrors();
    try {
        CrashDummy cd = new CrashDummy(true, 1, false, false, false, false);
        SafeSubscriber<Object> so = cd.toSafe();
        so.onSubscribe(cd);
        TestHelper.assertUndeliverable(list, 0, TestException.class, "onSubscribe()");
    } finally {
        RxJavaPlugins.reset();
    }
}