protected WordComposer getCurrentComposedWord() {
    return mWord;
  }
@Test
  public void testSuggestionsRestartWhenBackSpace() {
    simulateFinishInputFlow();
    SharedPrefsHelper.setPrefsValue(R.string.settings_key_allow_suggestions_restart, true);
    simulateOnStartInputFlow();

    mAnySoftKeyboardUnderTest.simulateTextTyping("hell face");
    verifySuggestions(true, "face");
    mAnySoftKeyboardUnderTest.simulateKeyPress(' ');
    Assert.assertEquals(
        "hell face ", getCurrentTestInputConnection().getCurrentTextInInputConnection());
    verifySuggestions(true);

    mAnySoftKeyboardUnderTest.resetMockCandidateView();
    for (int deleteKeyPress = 6; deleteKeyPress > 0; deleteKeyPress--) {
      // really quickly
      mAnySoftKeyboardUnderTest.simulateKeyPress(KeyCodes.DELETE, false);
      TestRxSchedulers.foregroundAdvanceBy(
          50 /*that's the key-repeat delay in AnyKeyboardViewBase*/);
    }
    TestRxSchedulers.drainAllTasksUntilEnd(); // lots of events in the queue...
    TestRxSchedulers.foregroundAdvanceBy(100);
    verifySuggestions(true, "hell", "hello");
    Assert.assertEquals("hell", getCurrentTestInputConnection().getCurrentTextInInputConnection());
    Assert.assertEquals(4, getCurrentTestInputConnection().getCurrentStartPosition());
    Assert.assertEquals(4, mAnySoftKeyboardUnderTest.getCurrentComposedWord().cursorPosition());
    Assert.assertEquals(
        "hell", mAnySoftKeyboardUnderTest.getCurrentComposedWord().getTypedWord().toString());

    mAnySoftKeyboardUnderTest.simulateKeyPress(KeyCodes.DELETE);
    Assert.assertEquals("hel", getCurrentTestInputConnection().getCurrentTextInInputConnection());
    Assert.assertEquals(3, getCurrentTestInputConnection().getCurrentStartPosition());
    Assert.assertEquals(
        "hel", mAnySoftKeyboardUnderTest.getCurrentComposedWord().getTypedWord().toString());
    verifySuggestions(true, "hel", "he'll", "hello", "hell");

    mAnySoftKeyboardUnderTest.simulateKeyPress('l');
    Assert.assertEquals("hell", getCurrentTestInputConnection().getCurrentTextInInputConnection());
    verifySuggestions(true, "hell", "hello");
    Assert.assertEquals(4, getCurrentTestInputConnection().getCurrentStartPosition());
    Assert.assertEquals(
        "hell", mAnySoftKeyboardUnderTest.getCurrentComposedWord().getTypedWord().toString());
  }