### Question:
HttpServiceFactoryImpl implements ServiceFactory { public void ungetService( final Bundle bundle, final ServiceRegistration serviceRegistration, final Object httpService ) { LOG.info( "Unbinding bundle: [" + bundle + "]" ); ( (StoppableHttpService) httpService ).stop(); }  Object getService( final Bundle bundle, final ServiceRegistration serviceRegistration ); void ungetService( final Bundle bundle, final ServiceRegistration serviceRegistration,
                              final Object httpService );  }### Answer:
@Test public void checkUngetServiceFlow() { m_httpService.stop(); replay( m_bundle, m_serviceRegistration, m_httpService ); m_underTest.ungetService( m_bundle, m_serviceRegistration, m_httpService ); verify( m_bundle, m_serviceRegistration, m_httpService ); }