BaseManagementAnnotationHandlers extends AnnotationHandlers { @Nullable public static FragmentFactoryAnnotationHandler obtainFactoryHandler(@NonNull final Class<?> classOfFactory) { return obtainHandler(FragmentFactoryHandler.class, classOfFactory); }  @Nullable static FragmentFactoryAnnotationHandler obtainFactoryHandler(@NonNull final Class<?> classOfFactory);  }
@Test public void testObtainFragmentHandler() { final FragmentFactoryAnnotationHandler handler = BaseManagementAnnotationHandlers.obtainFactoryHandler(TestFactory.class); assertThat(handler, is(notNullValue())); assertThat(handler, instanceOf(BaseManagementAnnotationHandlers.FragmentFactoryHandler.class)); }