GuidedTourBridge { public void registerPositionProvider(final String type, final PositionProviderFunction positionProviderFunction) { getPositionProviderInstance().registerPositionProvider(type, positionProviderFunction); } @Inject  GuidedTourBridge(final GuidedTourService guidedTourService,
                            final GlobalHTMLObserver globalHTMLObserver); @PostConstruct void init(); void refresh(final UserInteraction userInteraction); void registerTutorial(final Tutorial tutorial); void registerObserver(final GuidedTourObserver observer); void registerPositionProvider(final String type,
                                         final PositionProviderFunction positionProviderFunction);  }
@Test public void testRegisterPositionProvider() { final GuidedTourCustomSelectorPositionProvider positionProvider = mock(GuidedTourCustomSelectorPositionProvider.class); final PositionProviderFunction positionProviderFunction = mock(PositionProviderFunction.class); final String type = "type"; doReturn(positionProvider).when(bridge).getPositionProviderInstance(); bridge.registerPositionProvider(type, positionProviderFunction); verify(positionProvider).registerPositionProvider(type, positionProviderFunction); }