@Test public void testOnAttach() {

	// Arrange:
	final BaseFragment fragment = new TestFragment();
	fragment.onDetach();
	// Act:
	fragment.onAttach(new Activity());
	// Assert:
	assertThat(fragment.isAttached(), is(true));
	assertThat(fragment.hasLifecycleFlag(BaseFragment.LIFECYCLE_DETACHED), is(false));
}