public void testRefreshEmpty() {
   SuggestionData shortcut1 = new SuggestionData(mSource1).setShortcutId("empty_refresh");
   ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1);
   mRefresher.refresh(shortcuts, mListener);
   assertTrue(mExecutor.runNext());
   assertEquals(mSource1, mRefreshedSource);
   assertEquals("empty_refresh", mRefreshedShortcutId);
   assertEquals(null, mRefreshedCursor);
 }
 public void testRefreshSuccess() {
   SuggestionData shortcut1 = new SuggestionData(mSource1).setShortcutId("success");
   ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1);
   mRefresher.refresh(shortcuts, mListener);
   assertTrue(mExecutor.runNext());
   assertEquals(mSource1, mRefreshedSource);
   assertEquals("success", mRefreshedShortcutId);
   SuggestionCursor expected =
       SuggestionCursorUtil.slice(mSource1.getSuggestions(mQuery, 1, true), 0, 1);
   SuggestionCursorUtil.assertSameSuggestions(expected, mRefreshedCursor);
 }