Now using mockito to prevent NPE from scheduler starting after
system stops