### Question:
GcmJobSchedulerService extends GcmTaskService { @Override public int onRunTask(TaskParams taskParams) { GcmScheduler scheduler = getScheduler(); if (scheduler != null) { return scheduler.onStartJob(taskParams); } else { JqLog.e("RunTask on GcmJobSchedulerService has been called but it does not have a " + "scheduler. Make sure you've initialized JobManager before the service might" + " be created."); return GcmNetworkManager.RESULT_FAILURE; } }  @SuppressWarnings("unused") static GcmScheduler createSchedulerFor(Context appContext,
                                                  Class<? extends GcmJobSchedulerService> klass); @Override int onRunTask(TaskParams taskParams);  }### Answer:
@Test public void onStartJob() { TaskParams params = mock(TaskParams.class); service.onRunTask(params); verify(mockScheduler).onStartJob(params); }