@SmallTest
 @Feature({"Sync"})
 public void testGetContractAuthority() throws Exception {
   assertEquals(
       "The contract authority should be the package name.",
       getInstrumentation().getTargetContext().getPackageName(),
       AndroidSyncSettings.getContractAuthority(mContext));
 }
  @Override
  protected void setUp() throws Exception {
    mSyncContentResolverDelegate = new CountingMockSyncContentResolverDelegate();
    mContext = getInstrumentation().getTargetContext();
    setupTestAccounts(mContext);

    AndroidSyncSettings.overrideForTests(mContext, mSyncContentResolverDelegate);
    mAuthority = AndroidSyncSettings.getContractAuthority(mContext);
    AndroidSyncSettings.updateAccount(mContext, mAccount);

    mSyncSettingsObserver = new MockSyncSettingsObserver();
    AndroidSyncSettings.registerObserver(mContext, mSyncSettingsObserver);

    super.setUp();
  }