BaseAnnotationHandlers extends AnnotationHandlers { @Nullable public static FragmentAnnotationHandler obtainFragmentHandler(@NonNull final Class<?> classOfFragment) { return obtainHandler(FragmentHandler.class, classOfFragment); }  @Nullable static FragmentAnnotationHandler obtainFragmentHandler(@NonNull final Class<?> classOfFragment);  }
@Test public void testObtainFragmentHandler() { final FragmentAnnotationHandler handler = BaseAnnotationHandlers.obtainFragmentHandler(TestFragment.class); assertThat(handler, is(notNullValue())); assertThat(handler, instanceOf(BaseAnnotationHandlers.FragmentHandler.class)); }