protected boolean isCurrentlyPredicting() {
    return isPredictionOn() && !mWord.isEmpty();
  }
@Test
  public void testDoesNotPostRestartOnBackspaceWhilePredicting() {
    simulateFinishInputFlow();
    SharedPrefsHelper.setPrefsValue(R.string.settings_key_allow_suggestions_restart, true);
    simulateOnStartInputFlow();

    mAnySoftKeyboardUnderTest.simulateTextTyping("hel");
    Assert.assertTrue(mAnySoftKeyboardUnderTest.isCurrentlyPredicting());
    Assert.assertFalse(
        ((AnySoftKeyboardSuggestions) mAnySoftKeyboardUnderTest)
            .mKeyboardHandler.hasMessages(MSG_RESTART_NEW_WORD_SUGGESTIONS));
    mAnySoftKeyboardUnderTest.simulateKeyPress(KeyCodes.DELETE, false);
    Assert.assertFalse(
        ((AnySoftKeyboardSuggestions) mAnySoftKeyboardUnderTest)
            .mKeyboardHandler.hasMessages(MSG_RESTART_NEW_WORD_SUGGESTIONS));
    SystemClock.sleep(5);
    Assert.assertFalse(
        ((AnySoftKeyboardSuggestions) mAnySoftKeyboardUnderTest)
            .mKeyboardHandler.hasMessages(MSG_RESTART_NEW_WORD_SUGGESTIONS));
  }