mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/transport/TestTransportLayerImpl.java
@Test
    public void testGetConfig() throws Exception
    {
        initTransportLayer(false);

        Dictionary<String, Object> table = new Hashtable<>();
        Configuration config = ConfigurationAdminMocker.addMockConfiguration(m_SUT);
        when(config.getProperties()).thenReturn(table);
        
        // verify defaults
        assertThat(m_SUT.getConfig().linkLayerName(), is(""));
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(0));
        
        // test overrides
        table.put(TransportLayerAttributes.CONFIG_PROP_LINK_LAYER_NAME, "blah");
        table.put(TransportLayerAttributes.CONFIG_PROP_READ_TIMEOUT_MS, 500);
        assertThat(m_SUT.getConfig().linkLayerName(), is("blah"));
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(500));
    }
/**
     * Verify {@link TransportLayerImpl#getConfig()} will return an object with the default properties and set 
     * properties.
     */
Verify  TransportLayerImpl#getConfig() will return an object with the default properties and set
properties.
Verify TransportLayerImpl#getConfig () will return an object with the default properties and set properties .
@Test
    public void testGetConfig() throws Exception
    {
        initTransportLayer(false);
        Dictionary<String, Object> table = new Hashtable<>();
        Configuration config = ConfigurationAdminMocker.addMockConfiguration(m_SUT);
        when(config.getProperties()).thenReturn(table);
        assertThat(m_SUT.getConfig().linkLayerName(), is(""));
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(0));
        table.put(TransportLayerAttributes.CONFIG_PROP_LINK_LAYER_NAME, "blah");
        table.put(TransportLayerAttributes.CONFIG_PROP_READ_TIMEOUT_MS, 500);
        assertThat(m_SUT.getConfig().linkLayerName(), is("blah"));
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(500));
    }
@ Test public void testGetConfig ( ) throws Exception { initTransportLayer ( false ) ; Dictionary < String , Object > table = new Hashtable < > ( ) ; Configuration config = ConfigurationAdminMocker . addMockConfiguration ( m_SUT ) ; when ( config . getProperties ( ) ) . thenReturn ( table ) ; assertThat ( m_SUT . getConfig ( ) . linkLayerName ( ) , is ( "" ) ) ; assertThat ( m_SUT . getConfig ( ) . readTimeoutMs ( ) , is ( 0 ) ) ; table . put ( TransportLayerAttributes . CONFIG_PROP_LINK_LAYER_NAME , "blah" ) ; table . put ( TransportLayerAttributes . CONFIG_PROP_READ_TIMEOUT_MS , 500 ) ; assertThat ( m_SUT . getConfig ( ) . linkLayerName ( ) , is ( "blah" ) ) ; assertThat ( m_SUT . getConfig ( ) . readTimeoutMs ( ) , is ( 500 ) ) ; }
Verify {@link TransportLayerImpl#getConfig()} will return an object with the default properties and set
 properties.
Verify { @link TransportLayerImpl#getConfig () } will return an object with the default properties and set properties .
// verify defaults // test overrides