@Before
  public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);

    when(driver.getValidator()).thenReturn(validator);

    dispatcher = new FirebaseJobDispatcher(driver);
    setDriverAvailability(true);
  }
Tests for the {@link FirebaseJobDispatcher} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/FirebaseJobDispatcherTest.java