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