JobInvocation implements JobParameters { @NonNull @Override public Bundle getExtras() { return extras; } private  JobInvocation(Builder builder); @NonNull @Override String getService(); @NonNull @Override String getTag(); @NonNull @Override JobTrigger getTrigger(); @Override int getLifetime(); @Override boolean isRecurring(); @NonNull @Override int[] getConstraints(); @NonNull @Override Bundle getExtras(); @NonNull @Override RetryStrategy getRetryStrategy(); @Override boolean shouldReplaceCurrent(); @Override TriggerReason getTriggerReason(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void extras() throws Exception { assertNotNull(builder.build().getExtras()); Bundle bundle = new Bundle(); bundle.putLong("test", 1L); Bundle extras = builder.addExtras(bundle).build().getExtras(); assertEquals(1, extras.size()); assertEquals(1L, extras.getLong("test")); }