static void assertBundlesEqual(Bundle inExtras, Bundle outExtras) {
    if (inExtras == null || outExtras == null) {
      assertNull(inExtras);
      assertNull(outExtras);
      return;
    }

    assertEquals("getExtras().size()", inExtras.size(), outExtras.size());
    final Set<String> inKeys = inExtras.keySet();
    for (String key : inKeys) {
      assertTrue("getExtras().containsKey(\"" + key + "\")", outExtras.containsKey(key));
      assertEquals("getExtras().get(\"" + key + "\")", inExtras.get(key), outExtras.get(key));
    }
  }
Provides common utilities helpful for testing.
jobdispatcher/src/testLib/com/firebase/jobdispatcher/TestUtil.java