public String getKind() {
    if (mImeTrigger != null && mIntentApiTrigger != null) {
      return "both";
    } else if (mImeTrigger != null) {
      return "ime";
    } else if (mIntentApiTrigger != null) {
      return "intent";
    } else {
      return "none";
    }
  }
@Test
  public void testVoiceRecognitionTriggerFallsBackToIntent() {
    addInputMethodInfo(List.of("keyboard"));
    voiceActivities.add(new ResolveInfo());

    VoiceRecognitionTrigger trigger = new VoiceRecognitionTrigger(mMockInputMethodService);
    Assert.assertEquals("intent", trigger.getKind());
  }