### Question:
FrameworkJobSchedulerService extends JobService { @Override public void onDestroy() { super.onDestroy(); FrameworkScheduler scheduler = getScheduler(); if (scheduler != null) { scheduler.setJobService(null); } else { JqLog.e("FrameworkJobSchedulerService is being destroyed but it does not have a " + "scheduler :/. You must initialize JobManager before the service is created."); } }  @SuppressWarnings("unused") static FrameworkScheduler createSchedulerFor(
            @SuppressWarnings("UnusedParameters") Context appContext,
            Class<? extends FrameworkJobSchedulerService> klass); @Override void onCreate(); @Override void onDestroy(); @Override boolean onStartJob(JobParameters params); @Override boolean onStopJob(JobParameters params);  }### Answer:
@Test public void onDestroy() { service.onDestroy(); verify(mockScheduler).setJobService(null); }