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

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

    mAnySoftKeyboardUnderTest.resetMockCandidateView();
    mAnySoftKeyboardUnderTest.moveCursorToPosition(2, true);
    TestRxSchedulers.drainAllTasksUntilEnd();
    Assert.assertEquals(2, mAnySoftKeyboardUnderTest.getCurrentComposedWord().cursorPosition());
    Assert.assertEquals(
        "hell yes", getCurrentTestInputConnection().getCurrentTextInInputConnection());
    verifySuggestions(true, "hell", "hello");
    Assert.assertEquals(
        "hell", mAnySoftKeyboardUnderTest.getCurrentComposedWord().getTypedWord().toString());
    Assert.assertEquals(2, getCurrentTestInputConnection().getCurrentStartPosition());

    mAnySoftKeyboardUnderTest.simulateKeyPress(KeyCodes.DELETE);
    Assert.assertEquals(1, mAnySoftKeyboardUnderTest.getCurrentComposedWord().cursorPosition());
    Assert.assertEquals(1, getCurrentTestInputConnection().getCurrentStartPosition());
    TestRxSchedulers.foregroundFlushAllJobs();
    TestRxSchedulers.foregroundFlushAllJobs();
    Assert.assertEquals(
        "hll yes", getCurrentTestInputConnection().getCurrentTextInInputConnection());
    Assert.assertEquals(1, getCurrentTestInputConnection().getCurrentStartPosition());
    Assert.assertEquals(
        "hll", mAnySoftKeyboardUnderTest.getCurrentComposedWord().getTypedWord().toString());

    mAnySoftKeyboardUnderTest.simulateKeyPress('e');
    Assert.assertEquals(
        "hell yes", getCurrentTestInputConnection().getCurrentTextInInputConnection());
    Assert.assertEquals(2, getCurrentTestInputConnection().getCurrentStartPosition());
    Assert.assertEquals(2, mAnySoftKeyboardUnderTest.getCurrentComposedWord().cursorPosition());
    Assert.assertEquals(
        "hell", mAnySoftKeyboardUnderTest.getCurrentComposedWord().getTypedWord().toString());
  }