public void dismiss() {
    mDialogController.dismiss();
  }
@Test
  public void testDismiss() {
    Application context = ApplicationProvider.getApplicationContext();
    ShadowApplication shadowApplication = Shadows.shadowOf(context);

    final AddOnStoreSearchController underTest = new AddOnStoreSearchController(context, "add on");

    underTest.searchForAddOns();
    Assert.assertNotSame(
        GeneralDialogTestUtil.NO_DIALOG, GeneralDialogTestUtil.getLatestShownDialog());

    underTest.dismiss();
    Assert.assertSame(
        GeneralDialogTestUtil.NO_DIALOG, GeneralDialogTestUtil.getLatestShownDialog());
  }