### Question:
FullScreenModal extends DialogFragment { @Override public String toString() { return "FullScreenModal{" + ", contentContainer=" + contentContainer + ", secondaryExitButton=" + secondaryExitButton + ", closeButton=" + closeButton + '}'; }  @Override void onCreate(Bundle savedInstanceState); @Override final View onCreateView(@NonNull final LayoutInflater inflater,
                                   @Nullable final ViewGroup container,
                                   @Nullable final Bundle savedInstanceState); @Override void onStop(); @Override void onResume(); @Override void onAttach(Context context); @LayoutRes abstract int getContentView(); @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") @Nullable String getTitle(); @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") @Nullable String getSecondaryExitString(); @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") @Nullable View.OnClickListener getSecondaryExitClickListener(); @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") @Nullable View.OnClickListener getOnDismissListener(); boolean shouldAnimate(); @Override String toString();  }### Answer:
@Test public void testSecondaryExit() { final Button secondaryExit = root.findViewById(R.id.ui_fullscreenmodal_secondary_exit_button); assertNotNull(secondaryExit); assertEquals(View.VISIBLE, secondaryExit.getVisibility()); assertEquals(DummyMeliDialog.SECONDARY_EXIT, secondaryExit.getText().toString()); }
@Test public void testContentViewHierarchy() { final ViewGroup contentContainer = root.findViewById(R.id.ui_fullscreenmodal_parent_container); assertNotNull(contentContainer); final AppBarLayout appBarLayout = (AppBarLayout) contentContainer.getChildAt(0); assertNotNull(appBarLayout); final CollapsingToolbarLayout collapsingToolbarLayout = (CollapsingToolbarLayout) appBarLayout.getChildAt(0); assertNotNull(collapsingToolbarLayout); final Toolbar toolbar = (Toolbar) collapsingToolbarLayout.getChildAt(0); assertNotNull(toolbar); final NestedScrollView nestedScrollView = (NestedScrollView) contentContainer.getChildAt(1); assertNotNull(nestedScrollView); final ViewGroup containerInScroll = (ViewGroup) nestedScrollView.getChildAt(0); assertNotNull(containerInScroll); final FrameLayout frameLayout = (FrameLayout) containerInScroll.getChildAt(0); assertNotNull(frameLayout); final View errorView = frameLayout.getChildAt(0); assertNotNull(errorView); assertEquals(View.VISIBLE, errorView.getVisibility()); assertTrue(errorView instanceof ErrorView); final Button secondaryExit = (Button) containerInScroll.getChildAt(1); assertNotNull(secondaryExit); assertEquals(View.VISIBLE, secondaryExit.getVisibility()); assertEquals(DummyMeliDialog.SECONDARY_EXIT, secondaryExit.getText().toString()); }