@Test
  public void testWriteToBundle_retryPolicy() {
    assertEquals(
        "retry_policy",
        GooglePlayJobWriter.LEGACY_RETRY_POLICY_EXPONENTIAL,
        writer
            .writeToBundle(
                initializeDefaultBuilder()
                    .setRetryStrategy(RetryStrategy.DEFAULT_EXPONENTIAL)
                    .build(),
                new Bundle())
            .getBundle("retryStrategy")
            .getInt("retry_policy"));

    assertEquals(
        "retry_policy",
        GooglePlayJobWriter.LEGACY_RETRY_POLICY_LINEAR,
        writer
            .writeToBundle(
                initializeDefaultBuilder().setRetryStrategy(RetryStrategy.DEFAULT_LINEAR).build(),
                new Bundle())
            .getBundle("retryStrategy")
            .getInt("retry_policy"));
  }
Tests for the {@link GooglePlayJobWriter} class.
jobdispatcher/src/test/java/com/firebase/jobdispatcher/GooglePlayJobWriterTest.java