protected Set<MediaType> getSupportedMediaTypesForInput() {
    return mSupportedMediaTypesUnmodifiable;
  }
@Test
  public void testReportsMediaTypesAndClearsOnFinish() {
    simulateFinishInputFlow();
    EditorInfo info = createEditorInfoTextWithSuggestionsForSetUp();

    simulateOnStartInputFlow(false, info);
    Assert.assertTrue(mPackageScope.getSupportedMediaTypesForInput().isEmpty());
    simulateFinishInputFlow();
    Assert.assertTrue(mPackageScope.getSupportedMediaTypesForInput().isEmpty());

    EditorInfoCompat.setContentMimeTypes(info, new String[] {"image/jpg"});
    simulateOnStartInputFlow(false, info);
    Assert.assertTrue(mPackageScope.getSupportedMediaTypesForInput().contains(MediaType.Image));
    Assert.assertFalse(mPackageScope.getSupportedMediaTypesForInput().contains(MediaType.Gif));
    simulateFinishInputFlow();
    Assert.assertTrue(mPackageScope.getSupportedMediaTypesForInput().isEmpty());

    EditorInfoCompat.setContentMimeTypes(info, new String[] {"image/gif"});
    simulateOnStartInputFlow(false, info);
    Assert.assertTrue(mPackageScope.getSupportedMediaTypesForInput().contains(MediaType.Image));
    Assert.assertTrue(mPackageScope.getSupportedMediaTypesForInput().contains(MediaType.Gif));
    simulateFinishInputFlow();
    Assert.assertTrue(mPackageScope.getSupportedMediaTypesForInput().isEmpty());

    EditorInfoCompat.setContentMimeTypes(info, new String[] {"image/menny_image"});
    simulateOnStartInputFlow(false, info);
    Assert.assertTrue(mPackageScope.getSupportedMediaTypesForInput().contains(MediaType.Image));
    Assert.assertFalse(mPackageScope.getSupportedMediaTypesForInput().contains(MediaType.Gif));
    simulateFinishInputFlow();
    Assert.assertTrue(mPackageScope.getSupportedMediaTypesForInput().isEmpty());
  }