protected boolean isPredictionOn() {
    return mPredictionOn;
  }
@Test
  @LooperMode(LooperMode.Mode.LEGACY) /*sensitive to animations*/
  public void testClickingCancelPredicationHappyPath() {
    TestRxSchedulers.drainAllTasks();
    TestRxSchedulers.foregroundAdvanceBy(10000);
    final KeyboardViewContainerView.StripActionProvider provider =
        ((AnySoftKeyboardSuggestions) mAnySoftKeyboardUnderTest).mCancelSuggestionsAction;
    View rootActionView =
        provider
            .inflateActionView(mAnySoftKeyboardUnderTest.getInputViewContainer())
            .findViewById(R.id.close_suggestions_strip_root);
    final View.OnClickListener onClickListener =
        Shadows.shadowOf(rootActionView).getOnClickListener();
    final View image = rootActionView.findViewById(R.id.close_suggestions_strip_icon);
    final View text = rootActionView.findViewById(R.id.close_suggestions_strip_text);

    Assert.assertEquals(View.VISIBLE, image.getVisibility());
    Assert.assertEquals(View.GONE, text.getVisibility());

    Shadows.shadowOf(Looper.getMainLooper()).pause();
    onClickListener.onClick(rootActionView);
    // should be shown for some time
    Assert.assertEquals(View.VISIBLE, text.getVisibility());
    // strip is not removed
    Assert.assertNotNull(
        mAnySoftKeyboardUnderTest
            .getInputViewContainer()
            .findViewById(R.id.close_suggestions_strip_text));

    Assert.assertTrue(mAnySoftKeyboardUnderTest.isPredictionOn());
    Shadows.shadowOf(Looper.getMainLooper()).unPause();
    Assert.assertEquals(View.GONE, text.getVisibility());

    Shadows.shadowOf(Looper.getMainLooper()).pause();
    onClickListener.onClick(rootActionView);
    Assert.assertEquals(View.VISIBLE, text.getVisibility());
    Assert.assertNotNull(
        mAnySoftKeyboardUnderTest
            .getInputViewContainer()
            .findViewById(R.id.close_suggestions_strip_text));

    // removing
    onClickListener.onClick(rootActionView);
    Shadows.shadowOf(Looper.getMainLooper()).unPause();
    Assert.assertNull(
        mAnySoftKeyboardUnderTest
            .getInputViewContainer()
            .findViewById(R.id.close_suggestions_strip_text));
    Assert.assertFalse(mAnySoftKeyboardUnderTest.isPredictionOn());
  }