@Test
public void onSubscribeTwice() {

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