mil.dod.th.ose.config/test/mil/dod/th/ose/config/loading/impl/TestConfigurationMgr.java
@SuppressWarnings({"unchecked", "rawtypes"})
    @Test
    public void testFrameworkEventStarted_FirstRunUpdated() throws IOException, UnmarshalException
    {
        when(m_ConfigAdmin.getConfiguration(ConfigurationMgr.class.getName())).thenReturn(m_OSGiConfiguration);
        when(m_OSGiConfiguration.getProperties()).thenReturn(null);
        
        m_SUT.activate(m_BundleContext);
        
        ArgumentCaptor<Dictionary> dCaptor = ArgumentCaptor.forClass(Dictionary.class);
        verify(m_OSGiConfiguration).update(dCaptor.capture());
        
        assertThat(dCaptor.getValue().size(), is(1));
        assertThat((Boolean)dCaptor.getValue().get(ConfigurationMgrConfig.FIRST_RUN_PROPERTY), is(false));
    }
/**
     * Verify that on activation of the manager that the configurations are read in, framework listener registered and
     * OSGi configuration updated. On deactivation, verify that the frame listener is unregistered.
     */
Verify that on activation of the manager that the configurations are read in, framework listener registered and
OSGi configuration updated. On deactivation, verify that the frame listener is unregistered.
Verify that on activation of the manager that the configurations are read in framework listener registered and OSGi configuration updated . On deactivation verify that the frame listener is unregistered .
@SuppressWarnings({"unchecked", "rawtypes"})
    @Test
    public void testFrameworkEventStarted_FirstRunUpdated() throws IOException, UnmarshalException
    {
        when(m_ConfigAdmin.getConfiguration(ConfigurationMgr.class.getName())).thenReturn(m_OSGiConfiguration);
        when(m_OSGiConfiguration.getProperties()).thenReturn(null);
        m_SUT.activate(m_BundleContext);
        ArgumentCaptor<Dictionary> dCaptor = ArgumentCaptor.forClass(Dictionary.class);
        verify(m_OSGiConfiguration).update(dCaptor.capture());
        assertThat(dCaptor.getValue().size(), is(1));
        assertThat((Boolean)dCaptor.getValue().get(ConfigurationMgrConfig.FIRST_RUN_PROPERTY), is(false));
    }
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) @ Test public void testFrameworkEventStarted_FirstRunUpdated ( ) throws IOException , UnmarshalException { when ( m_ConfigAdmin . getConfiguration ( ConfigurationMgr . class . getName ( ) ) ) . thenReturn ( m_OSGiConfiguration ) ; when ( m_OSGiConfiguration . getProperties ( ) ) . thenReturn ( null ) ; m_SUT . activate ( m_BundleContext ) ; ArgumentCaptor < Dictionary > dCaptor = ArgumentCaptor . forClass ( Dictionary . class ) ; verify ( m_OSGiConfiguration ) . update ( dCaptor . capture ( ) ) ; assertThat ( dCaptor . getValue ( ) . size ( ) , is ( 1 ) ) ; assertThat ( ( Boolean ) dCaptor . getValue ( ) . get ( ConfigurationMgrConfig . FIRST_RUN_PROPERTY ) , is ( false ) ) ; }
Verify that on activation of the manager that the configurations are read in, framework listener registered and
 OSGi configuration updated.
Verify that on activation of the manager that the configurations are read in framework listener registered and OSGi configuration updated .