ServletRegistrationComponent { public void stopping() throws Exception { this.logger.fine( "iPojo unregisters REST and icons servlets related to Roboconf's DM." ); if( this.httpService != null ) { this.httpService.unregister( CONTEXT ); } else { this.logger.fine( "The HTTP service is gone. The servlets were already unregistered." ); } if( this.manager != null ) { this.manager.preferencesMngr().removeFromList( IPreferencesMngr.WEB_EXTENSIONS, CONTEXT ); } }  void starting(); void stopping(); void setManager( Manager manager ); void setAppDashBoardUrl( String appDashBoardUrl ); void setAgentDashBoardUrl( String agentDashBoardUrl );  }
@Test public void testStop_httpServiceIsNull() throws Exception { ServletRegistrationComponent register = new ServletRegistrationComponent(); register.stopping(); }