public boolean isInstalled() {
    return mTrigger != null;
  }
@Test
  public void testIntentInstalledWhenSomeActivity() {
    voiceActivities.add(new ResolveInfo());
    Assert.assertTrue(IntentApiTrigger.isInstalled(mMockInputMethodService));
  }