mil.dod.th.ose.datastream/test/mil/dod/th/ose/datastream/TestStreamProfileConfigListener.java
@SuppressWarnings({"unchecked"})
    @Test
    public void testRegisterConfigListenerMultipleTimes()
    {
        m_SUT.registerConfigListener("some.factory");
        m_SUT.registerConfigListener("some.factory");
        
        //Verify that multiple listeners are not registered for the same factory.
        verify(m_Context).registerService(eq(EventHandler.class), Mockito.any(ConfigurationListener.class), 
                Mockito.any(Dictionary.class));
    }
/**
     * Verify that a configuration listener is only registered once for a factory.
     */
Verify that a configuration listener is only registered once for a factory.
Verify that a configuration listener is only registered once for a factory .
@SuppressWarnings({"unchecked"})
    @Test
    public void testRegisterConfigListenerMultipleTimes()
    {
        m_SUT.registerConfigListener("some.factory");
        m_SUT.registerConfigListener("some.factory");
        verify(m_Context).registerService(eq(EventHandler.class), Mockito.any(ConfigurationListener.class), 
                Mockito.any(Dictionary.class));
    }
@ SuppressWarnings ( { "unchecked" } ) @ Test public void testRegisterConfigListenerMultipleTimes ( ) { m_SUT . registerConfigListener ( "some.factory" ) ; m_SUT . registerConfigListener ( "some.factory" ) ; verify ( m_Context ) . registerService ( eq ( EventHandler . class ) , Mockito . any ( ConfigurationListener . class ) , Mockito . any ( Dictionary . class ) ) ; }
Verify that a configuration listener is only registered once for a factory.
Verify that a configuration listener is only registered once for a factory .
//Verify that multiple listeners are not registered for the same factory.