### Question:
FragmentManagerNonConfig { List<Fragment> getFragments() { return mFragments; } FragmentManagerNonConfig(List<Fragment> fragments,
            List<FragmentManagerNonConfig> childNonConfigs,
            List<ViewModelStore> viewModelStores);   }### Answer:
@Test @SdkSuppress(maxSdkVersion = Build.VERSION_CODES.O_MR1) public void nonConfigStop() throws Throwable { FragmentActivity activity = FragmentActivityUtils.recreateActivity(mActivityRule, mActivityRule.getActivity()); assertTrue(activity.getSupportFragmentManager().getFragments().isEmpty()); }
@Test @SdkSuppress(minSdkVersion = Build.VERSION_CODES.P) public void nonConfigStopSavingFragment() throws Throwable { FragmentActivity activity = FragmentActivityUtils.recreateActivity(mActivityRule, mActivityRule.getActivity()); assertThat(activity.getSupportFragmentManager().getFragments().size(), is(1)); }