ActionBarFragment extends BaseFragment { @Override ActionBarFragmentAnnotationHandler onCreateAnnotationHandler() { return ActionBarAnnotationHandlers.obtainActionBarFragmentHandler(getClass()); }  @Override void onCreate(@Nullable final Bundle savedInstanceState); @Override void onCreateOptionsMenu(@NonNull final Menu menu, @NonNull final MenuInflater inflater); @Override void onActivityCreated(@Nullable final Bundle savedInstanceState); void invalidateActionBar();  }
@Test public void testOnCreateAnnotationHandler() { final ActionBarFragment fragment = new TestFragment(); final ActionBarFragmentAnnotationHandler annotationHandler = fragment.onCreateAnnotationHandler(); assertThat(annotationHandler, is(notNullValue())); assertThat(annotationHandler, is(fragment.onCreateAnnotationHandler())); }