@Test
public void testErrorHandlerViaProperty() {

    try {
        RxJavaPlugins p = new RxJavaPlugins();
        String fullClass = getFullClassNameForTestClass(RxJavaErrorHandlerTestImpl.class);
        System.setProperty("rxjava.plugin.RxJavaErrorHandler.implementation", fullClass);
        RxJavaErrorHandler impl = p.getErrorHandler();
        assertTrue(impl instanceof RxJavaErrorHandlerTestImpl);
    } finally {
        System.clearProperty("rxjava.plugin.RxJavaErrorHandler.implementation");
    }
}