SchedulerFactory { public static SchedulerFactory getInstance() { return lazyInstance.get(); } private  SchedulerFactory(); static SchedulerFactory getInstance(); ScheduledExecutorService getScheduler();  }
@Test public void shouldBeSameSchedulerFactoryInstance() { SchedulerFactory instance = SchedulerFactory.getInstance(); SchedulerFactory instance2 = SchedulerFactory.getInstance(); assertThat(instance).isEqualTo(instance2); }