mil.dod.th.ose.config/test/mil/dod/th/ose/config/loading/impl/TestFactoryObjectLoaderImpl.java
@Test
    public void testProcessNotFirstRun() throws InvalidSyntaxException
    {
        // Not a first run
        m_SUT.process(createConfigList(), false);

        // Post factory object loaded event
        m_EventAdmin.postEvent(m_FactoryObjectEvent);
        m_EventAdmin.postEvent(m_FactoryObjectEvent);

        verify(m_Context, times(2)).addServiceListener(any(ServiceListener.class), anyString());
    }
/**
     * Test that service trackers are created only for {@link mil.dod.th.model.config.FactoryObjectConfig} objects with
     * {@link mil.dod.th.model.config.CreatePolicyEnum#IF_MISSING}.
     */
Test that service trackers are created only for  mil.dod.th.model.config.FactoryObjectConfig objects with
mil.dod.th.model.config.CreatePolicyEnum#IF_MISSING.
Test that service trackers are created only for mil . dod . th . model . config . FactoryObjectConfig objects with mil . dod . th . model . config . CreatePolicyEnum#IF_MISSING .
@Test
    public void testProcessNotFirstRun() throws InvalidSyntaxException
    {
        m_SUT.process(createConfigList(), false);
        m_EventAdmin.postEvent(m_FactoryObjectEvent);
        m_EventAdmin.postEvent(m_FactoryObjectEvent);
        verify(m_Context, times(2)).addServiceListener(any(ServiceListener.class), anyString());
    }
@ Test public void testProcessNotFirstRun ( ) throws InvalidSyntaxException { m_SUT . process ( createConfigList ( ) , false ) ; m_EventAdmin . postEvent ( m_FactoryObjectEvent ) ; m_EventAdmin . postEvent ( m_FactoryObjectEvent ) ; verify ( m_Context , times ( 2 ) ) . addServiceListener ( any ( ServiceListener . class ) , anyString ( ) ) ; }
Test that service trackers are created only for {@link mil.dod.th.model.config.FactoryObjectConfig} objects with
 {@link mil.dod.th.model.config.CreatePolicyEnum#IF_MISSING}.
Test that service trackers are created only for { @link mil . dod . th . model . config . FactoryObjectConfig } objects with { @link mil . dod . th . model . config . CreatePolicyEnum#IF_MISSING } .
// Not a first run // Post factory object loaded event