@Test public void testAllowStateLoss() {

	// Arrange:
   	final FragmentRequest request = new FragmentRequest(mock(FragmentController.class), FragmentRequest.NO_ID);
	// Act + Assert:
	assertThat(request.allowStateLoss(true).allowStateLoss(), is(true));
	assertThat(request.hasFlag(FragmentRequest.ALLOW_STATE_LOSS), is(true));
	assertThat(request.allowStateLoss(false).allowStateLoss(), is(false));
	assertThat(request.hasFlag(FragmentRequest.ALLOW_STATE_LOSS), is(false));
}