@Override
  public void onText(Keyboard.Key key, CharSequence text) {
    mParentListener.listener().onText(key, text);
    if (mInOneShot) mKeyboardDismissAction.run();
  }
@Test
  public void testOnText() {
    final AnyKeyboard.AnyKey key = Mockito.mock(AnyKeyboard.AnyKey.class);
    final String text = "text";
    mUnderTest.onText(key, text);
    final InOrder inOrder = Mockito.inOrder(mMockParentListener, mMockKeyboardDismissAction);
    inOrder.verify(mMockParentListener).onText(Mockito.same(key), Mockito.same(text));
    inOrder.verifyNoMoreInteractions();
  }