### Question:
MeliDialog extends DialogFragment implements KeyboardEventCallback { @Override public String toString() { return "MeliDialog{" + "root=" + root + ", dialogContainer=" + dialogContainer + ", contentContainer=" + contentContainer + ", titleContainer=" + titleContainer + ", secondaryExitButton=" + secondaryExitButton + ", closeButton=" + closeButton + ", actionButton=" + actionButton + ", dismissed=" + dismissed + '}'; }  @Override void onCreate(@Nullable final Bundle savedInstanceState); @Override final View onCreateView(@NonNull final LayoutInflater inflater,
                                   @Nullable final ViewGroup container,
                                   @Nullable final Bundle savedInstanceState); @Override void onDestroy(); @Override void dismiss(); @LayoutRes abstract int getContentView(); @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") @Nullable String getTitle(); @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") @Nullable String getActionString(); @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") @Nullable View.OnClickListener getActionClickListener(); @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") @Nullable String getSecondaryExitString(); @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") @Nullable View.OnClickListener getSecondaryExitClickListener(); @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") @Nullable View.OnClickListener getOnDismissListener(); boolean shouldAnimate(); boolean shouldScroll(); @Override void onKeyboardShown(); @Override void onKeyboardHidden(); @Override String toString(); @Nullable String getCloseButtonContentDescription(); void setCloseButtonContentDescription(String contentDescription);  }### Answer:
@Test public void testTitle() { final TextView title = root.findViewById(R.id.ui_melidialog_title); assertNotNull(title); assertEquals(View.VISIBLE, title.getVisibility()); assertEquals(DummyMeliDialog.TITLE, title.getText().toString()); }
@Test public void testActionButton() { final TextView actionButton = root.findViewById(R.id.ui_melidialog_action_button); assertNotNull(actionButton); assertEquals(View.VISIBLE, actionButton.getVisibility()); assertEquals(DummyMeliDialog.ACTION_BUTTON, actionButton.getText().toString()); }
@Test public void testSecondaryExit() { final Button secondaryExit = root.findViewById(R.id.ui_melidialog_secondary_exit_button); assertNotNull(secondaryExit); assertEquals(View.VISIBLE, secondaryExit.getVisibility()); assertEquals(DummyMeliDialog.SECONDARY_EXIT, secondaryExit.getText().toString()); }