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

    mAnySoftKeyboardUnderTest.simulateTextTyping("hell yes");
    Assert.assertEquals(
        "hell yes", getCurrentTestInputConnection().getCurrentTextInInputConnection());
    mAnySoftKeyboardUnderTest.resetMockCandidateView();

    mAnySoftKeyboardUnderTest.moveCursorToPosition(2, true);
    verifySuggestions(true);
    Assert.assertEquals(
        "", mAnySoftKeyboardUnderTest.getCurrentComposedWord().getTypedWord().toString());
    Assert.assertEquals(0, mAnySoftKeyboardUnderTest.getCurrentComposedWord().cursorPosition());
    Assert.assertEquals(2, getCurrentTestInputConnection().getCurrentStartPosition());

    mAnySoftKeyboardUnderTest.simulateKeyPress('r');
    Assert.assertEquals(
        "herll yes", getCurrentTestInputConnection().getCurrentTextInInputConnection());
    verifySuggestions(true, "r");
    Assert.assertEquals(3, getCurrentTestInputConnection().getCurrentStartPosition());
    Assert.assertEquals(
        "r", mAnySoftKeyboardUnderTest.getCurrentComposedWord().getTypedWord().toString());

    mAnySoftKeyboardUnderTest.simulateKeyPress('d');
    Assert.assertEquals(
        "herdll yes", getCurrentTestInputConnection().getCurrentTextInInputConnection());
    verifySuggestions(true, "rd");
    Assert.assertEquals(4, getCurrentTestInputConnection().getCurrentStartPosition());
    Assert.assertEquals(
        "rd", mAnySoftKeyboardUnderTest.getCurrentComposedWord().getTypedWord().toString());
  }