SchedulerHelper { public static SchedulerHelper create(final LazyInitializer<Runnable> runnableFactory, final String name) { return new SchedulerHelper(runnableFactory, name); } private  SchedulerHelper(final LazyInitializer<Runnable> lazyRunnable); private  SchedulerHelper(final LazyInitializer<Runnable> lazyRunnable, final String name); static SchedulerHelper create(final LazyInitializer<Runnable> runnableFactory, final String name); static SchedulerHelper create(final LazyInitializer<Runnable> runnableFactory); SchedulerHelper scheduleWithPeriod(final long period); SchedulerHelper scheduleWithPeriod(final long period, final TimeUnit timeUnit); void destroy();  }
@Test(expected = NullPointerException.class) public void cannotAcceptNullArgument() { SchedulerHelper.create(null); }