@Test
  public void testWriteToBundle_backoffSeconds() {
    for (RetryStrategy retryStrategy :
        Arrays.asList(RetryStrategy.DEFAULT_EXPONENTIAL, RetryStrategy.DEFAULT_LINEAR)) {

      Bundle b =
          writer
              .writeToBundle(
                  initializeDefaultBuilder().setRetryStrategy(retryStrategy).build(), new Bundle())
              .getBundle("retryStrategy");

      assertEquals(
          "initial_backoff_seconds",
          retryStrategy.getInitialBackoff(),
          b.getInt("initial_backoff_seconds"));

      assertEquals(
          "maximum_backoff_seconds",
          retryStrategy.getMaximumBackoff(),
          b.getInt("maximum_backoff_seconds"));
    }
  }
Tests for the {@link GooglePlayJobWriter} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/GooglePlayJobWriterTest.java