<BUG>.addToBackStack(null).commit();</BUG><CONTEXT>public void optimizeHide() throws Throwable {final CountCallsFragment fragment1 = new CountCallsFragment();int id = mFM.beginTransaction().add(R.id.fragmentContainer, fragment1).hide(fragment1)<extra_id_0>FragmentTestUtil.executePendingTransactions(mActivityRule);assertEquals(0, fragment1.onShowCount);assertEquals(1, fragment1.onHideCount);</CONTEXT>
.setAllowOptimization(true).commit();