GuidedTourBridge { public void refresh(final UserInteraction userInteraction) { getGuidedTourService().refresh(userInteraction); } @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 testRefresh() { final UserInteraction userInteraction = mock(UserInteraction.class); when(service.isEnabled()).thenReturn(true); bridge.refresh(userInteraction); verify(service).refresh(userInteraction); }
@Test public void testRefreshWhenBridgeIsNotEnabled() { final UserInteraction userInteraction = mock(UserInteraction.class); when(service.isEnabled()).thenReturn(false); bridge.refresh(userInteraction); verify(observer).dispose(); }