protected final AnyKeyboardViewBase getMiniKeyboard() {
    return mMiniKeyboard;
  }
@Test
  public void
      testShortPressWhenNoPrimaryKeyAndNoPopupItemsButLongPressCodeShouldNotOutputLongPress()
          throws Exception {
    ExternalAnyKeyboard anyKeyboard =
        new ExternalAnyKeyboard(
            new DefaultAddOn(getApplicationContext(), getApplicationContext()),
            getApplicationContext(),
            keyboard_with_keys_with_no_codes,
            keyboard_with_keys_with_no_codes,
            "test",
            0,
            0,
            "en",
            "",
            "",
            KEYBOARD_ROW_MODE_NORMAL);
    anyKeyboard.loadKeyboard(mViewUnderTest.mKeyboardDimens);
    mViewUnderTest.setKeyboard(anyKeyboard, 0);

    final AnyKeyboard.AnyKey key = (AnyKeyboard.AnyKey) anyKeyboard.getKeys().get(2);

    Assert.assertEquals(0, key.getPrimaryCode());
    Assert.assertEquals(0, key.getCodesCount());
    Assert.assertEquals(0, key.popupResId);
    Assert.assertEquals(45, key.longPressCode);
    Assert.assertEquals("c", key.label);
    Assert.assertNull(key.popupCharacters);

    ViewTestUtils.navigateFromTo(mViewUnderTest, key, key, 30, true, false);

    Mockito.verify(mMockKeyboardListener)
        .onGestureTypingInputStart(
            eq(Keyboard.Key.getCenterX(key)),
            eq(Keyboard.Key.getCenterY(key)),
            same(key),
            anyLong());
    Mockito.verifyNoMoreInteractions(mMockKeyboardListener);

    Assert.assertNull(mViewUnderTest.getMiniKeyboard());
    Assert.assertFalse(mViewUnderTest.mMiniKeyboardPopup.isShowing());

    ViewTestUtils.navigateFromTo(mViewUnderTest, key, key, 10, false, true);

    Mockito.verify(mMockKeyboardListener, Mockito.never())
        .onKey(
            eq(45),
            nullable(Keyboard.Key.class),
            anyInt(),
            Mockito.any(int[].class),
            Mockito.anyBoolean());
    Mockito.verify(mMockKeyboardListener)
        .onKey(eq(0), same(key), eq(0), Mockito.any(int[].class), Mockito.anyBoolean());
  }