GuidedTourBridge { public void registerTutorial(final Tutorial tutorial) { getGuidedTourService().registerTutorial(tutorial); } @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 testRegisterTutorial() { final Tutorial tutorial = mock(Tutorial.class); when(service.isEnabled()).thenReturn(true); bridge.registerTutorial(tutorial); verify(service).registerTutorial(tutorial); }
@Test public void testRegisterTutorialWhenBridgeIsNotEnabled() { final Tutorial tutorial = mock(Tutorial.class); when(service.isEnabled()).thenReturn(false); bridge.registerTutorial(tutorial); verify(observer).dispose(); }