mil.dod.th.ose.datastream/test/mil/dod/th/ose/datastream/TestStreamProfileServiceProxy.java
@Test
    public void testOnRemoveFactory()
    {
        String factoryPid = "some.factory.pid";
        when(m_Factory.getPid()).thenReturn(factoryPid);
        
        m_SUT.onRemoveFactory(m_FactoryServiceContext, m_Factory);
        
        verify(m_ConfigListener).unregisterConfigListener("some.factory.pid");
    }
/**
     * Verify that the configuration listener for the factory being removed is unregistered.
     */
Verify that the configuration listener for the factory being removed is unregistered.
Verify that the configuration listener for the factory being removed is unregistered .
@Test
    public void testOnRemoveFactory()
    {
        String factoryPid = "some.factory.pid";
        when(m_Factory.getPid()).thenReturn(factoryPid);
        m_SUT.onRemoveFactory(m_FactoryServiceContext, m_Factory);
        verify(m_ConfigListener).unregisterConfigListener("some.factory.pid");
    }
@ Test public void testOnRemoveFactory ( ) { String factoryPid = "some.factory.pid" ; when ( m_Factory . getPid ( ) ) . thenReturn ( factoryPid ) ; m_SUT . onRemoveFactory ( m_FactoryServiceContext , m_Factory ) ; verify ( m_ConfigListener ) . unregisterConfigListener ( "some.factory.pid" ) ; }
Verify that the configuration listener for the factory being removed is unregistered.
Verify that the configuration listener for the factory being removed is unregistered .