@Override
 public void setUp() throws Exception {
   super.setUp();
   ThreadUtils.runOnUiThreadBlocking(
       new Runnable() {
         @Override
         public void run() {
           mBookmarksBridge = new BookmarksBridge(Profile.getLastUsedProfile());
           // The BookmarksBridge needs to know how to handle partner bookmarks.
           // Without this call to fake that knowledge for testing, it crashes.
           mBookmarksBridge.loadEmptyPartnerBookmarkShimForTesting();
         }
       });
   setupTestAccountAndSignInToSync(CLIENT_ID);
   // Make sure initial state is clean.
   assertClientBookmarkCount(0);
   assertServerBookmarkCountWithName(0, TITLE);
   assertServerBookmarkCountWithName(0, MODIFIED_TITLE);
 }
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   mPreferences = null;
 }