mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryDescriptorImpl.java
@SuppressWarnings({"unchecked", "rawtypes"})
    @Test
    public void testMakeAvailable() throws InterruptedException, UnmarshalException
    {
        m_AddProps.put("some-key", "some-value");
        
        m_SUT.makeAvailable();
        
        ArgumentCaptor<Dictionary> props = ArgumentCaptor.forClass(Dictionary.class);
        verify(coreBundleContext).registerService(eq(FactoryDescriptor.class), eq(m_SUT), props.capture());
        assertThat(props.getValue(), 
                rawDictionaryHasEntry(FactoryDescriptor.PRODUCT_TYPE_SERVICE_PROPERTY, PRODUCT_TYPE));
        assertThat(props.getValue(), rawDictionaryHasEntry("some-key", "some-value"));
    }
/**
     * Verify that the factory service is registered.
     */
Verify that the factory service is registered.
Verify that the factory service is registered .
@SuppressWarnings({"unchecked", "rawtypes"})
    @Test
    public void testMakeAvailable() throws InterruptedException, UnmarshalException
    {
        m_AddProps.put("some-key", "some-value");
        m_SUT.makeAvailable();
        ArgumentCaptor<Dictionary> props = ArgumentCaptor.forClass(Dictionary.class);
        verify(coreBundleContext).registerService(eq(FactoryDescriptor.class), eq(m_SUT), props.capture());
        assertThat(props.getValue(), 
                rawDictionaryHasEntry(FactoryDescriptor.PRODUCT_TYPE_SERVICE_PROPERTY, PRODUCT_TYPE));
        assertThat(props.getValue(), rawDictionaryHasEntry("some-key", "some-value"));
    }
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) @ Test public void testMakeAvailable ( ) throws InterruptedException , UnmarshalException { m_AddProps . put ( "some-key" , "some-value" ) ; m_SUT . makeAvailable ( ) ; ArgumentCaptor < Dictionary > props = ArgumentCaptor . forClass ( Dictionary . class ) ; verify ( coreBundleContext ) . registerService ( eq ( FactoryDescriptor . class ) , eq ( m_SUT ) , props . capture ( ) ) ; assertThat ( props . getValue ( ) , rawDictionaryHasEntry ( FactoryDescriptor . PRODUCT_TYPE_SERVICE_PROPERTY , PRODUCT_TYPE ) ) ; assertThat ( props . getValue ( ) , rawDictionaryHasEntry ( "some-key" , "some-value" ) ) ; }
Verify that the factory service is registered.
Verify that the factory service is registered .