### Question:
FrameworkJobSchedulerService extends JobService { @Override public void onCreate() { super.onCreate(); FrameworkScheduler scheduler = getScheduler(); if (scheduler != null) { scheduler.setJobService(this); } else { JqLog.e("FrameworkJobSchedulerService has been created 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 onCreate() { service.onCreate(); verify(mockScheduler).setJobService(service); }