@Test
public void runnableThrows() {

    List<Throwable> errors = TestHelper.trackPluginErrors();
    try {
        ScheduledDirectPeriodicTask task = new ScheduledDirectPeriodicTask(new Runnable() {
            @Override
            public void run() {
                throw new TestException();
            }
        });
        task.run();
        TestHelper.assertUndeliverable(errors, 0, TestException.class);
    } finally {
        RxJavaPlugins.reset();
    }
}