mil.dod.th.ose.config/test/mil/dod/th/ose/config/loading/impl/TestConfigurationMgr.java
@SuppressWarnings("unchecked")
    @Test
    public void testFrameworkEventStarted_ErrorLoadingConfig() throws IOException, UnmarshalException
    {
        when(m_ConfigAdmin.getConfiguration(ConfigurationMgr.class.getName())).thenThrow(new IOException("mock"));
        
        m_SUT.activate(m_BundleContext);
        
        verify(m_FactoryObjLoader, never()).process(anyList(), anyBoolean());
        verify(m_OsgiConfigLoader, never()).process(anyList(), anyBoolean());
        verify(m_AddrConfigLoader, never()).process(anyList(), anyBoolean());
        verify(m_EventConfigLoader, never()).process(anyList());
        verify(m_ChannelConfigLoader, never()).processSocketChannels(anyList());
        verify(m_ChannelConfigLoader, never()).processTransportChannels(anyList());

        EventAdminVerifier.assertNoEventByTopic(m_EventAdmin,
            ConfigLoadingConstants.TOPIC_CONFIG_PROCESSING_COMPLETE_EVENT);
    }
/**
     * Verify that on framework started event with an error loading the configuration file, it does not invoke any of 
     * the process methods.
     */
Verify that on framework started event with an error loading the configuration file, it does not invoke any of
the process methods.
Verify that on framework started event with an error loading the configuration file it does not invoke any of the process methods .
@SuppressWarnings("unchecked")
    @Test
    public void testFrameworkEventStarted_ErrorLoadingConfig() throws IOException, UnmarshalException
    {
        when(m_ConfigAdmin.getConfiguration(ConfigurationMgr.class.getName())).thenThrow(new IOException("mock"));
        m_SUT.activate(m_BundleContext);
        verify(m_FactoryObjLoader, never()).process(anyList(), anyBoolean());
        verify(m_OsgiConfigLoader, never()).process(anyList(), anyBoolean());
        verify(m_AddrConfigLoader, never()).process(anyList(), anyBoolean());
        verify(m_EventConfigLoader, never()).process(anyList());
        verify(m_ChannelConfigLoader, never()).processSocketChannels(anyList());
        verify(m_ChannelConfigLoader, never()).processTransportChannels(anyList());
        EventAdminVerifier.assertNoEventByTopic(m_EventAdmin,
            ConfigLoadingConstants.TOPIC_CONFIG_PROCESSING_COMPLETE_EVENT);
    }
@ SuppressWarnings ( "unchecked" ) @ Test public void testFrameworkEventStarted_ErrorLoadingConfig ( ) throws IOException , UnmarshalException { when ( m_ConfigAdmin . getConfiguration ( ConfigurationMgr . class . getName ( ) ) ) . thenThrow ( new IOException ( "mock" ) ) ; m_SUT . activate ( m_BundleContext ) ; verify ( m_FactoryObjLoader , never ( ) ) . process ( anyList ( ) , anyBoolean ( ) ) ; verify ( m_OsgiConfigLoader , never ( ) ) . process ( anyList ( ) , anyBoolean ( ) ) ; verify ( m_AddrConfigLoader , never ( ) ) . process ( anyList ( ) , anyBoolean ( ) ) ; verify ( m_EventConfigLoader , never ( ) ) . process ( anyList ( ) ) ; verify ( m_ChannelConfigLoader , never ( ) ) . processSocketChannels ( anyList ( ) ) ; verify ( m_ChannelConfigLoader , never ( ) ) . processTransportChannels ( anyList ( ) ) ; EventAdminVerifier . assertNoEventByTopic ( m_EventAdmin , ConfigLoadingConstants . TOPIC_CONFIG_PROCESSING_COMPLETE_EVENT ) ; }
Verify that on framework started event with an error loading the configuration file, it does not invoke any of
 the process methods.
Verify that on framework started event with an error loading the configuration file it does not invoke any of the process methods .