BackupJobs { public @Nullable Job scheduleImmediate() { return schedule(-1, BROADCAST_INTENT, true); } BackupJobs(Context context);   BackupJobs(Context context, Preferences preferences); @Nullable Job scheduleIncoming(); Job scheduleRegular(); @Nullable Job scheduleContentTriggerJob(); @Nullable Job scheduleBootup(); @Nullable Job scheduleImmediate(); void cancelAll(); void cancelRegular();  }
@Test public void shouldScheduleImmediate() throws Exception { Job job = subject.scheduleImmediate(); verifyJobScheduled(job, -1, "BROADCAST_INTENT"); }