@Override
  public void onText(Keyboard.Key key, CharSequence text) {
    mKeyboardActionListener.onText(key, text);
    if (TextUtils.isEmpty(key.label) || TextUtils.isEmpty(text)) return;
    String name = String.valueOf(key.label);
    String value = String.valueOf(text);

    mHistoryQuickTextKey.recordUsedKey(name, value);
  }
@Test
  public void onTextWithNoLabel() throws Exception {
    Keyboard.Key key = Mockito.mock(Keyboard.Key.class);
    key.label = null;

    mUnderTest.onText(key, "test");

    Mockito.verify(mKeyboardListener).onText(key, "test");
    Mockito.verifyZeroInteractions(mHistoryKey);
  }