mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/physical/TestPhysicalLinkImpl.java
@Test
    public void testGetConfig()
    {
        Dictionary<String, Object> table = new Hashtable<>();
        when(m_Configuration.getProperties()).thenReturn(table);
        
        // verify defaults
        assertThat(m_SUT.getConfig().dataBits(), is(8));
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(-1));
        
        // test overrides
        table.put(PhysicalLinkAttributes.CONFIG_PROP_DATA_BITS, 7);
        table.put(PhysicalLinkAttributes.CONFIG_PROP_READ_TIMEOUT_MS, 500);
        assertThat(m_SUT.getConfig().dataBits(), is(7));
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(500));

    }
/**
     * Verify {@link PhysicalLinkImpl#getConfig()} will return an object with the default properties and set properties.
     */
Verify  PhysicalLinkImpl#getConfig() will return an object with the default properties and set properties.
Verify PhysicalLinkImpl#getConfig () will return an object with the default properties and set properties .
@Test
    public void testGetConfig()
    {
        Dictionary<String, Object> table = new Hashtable<>();
        when(m_Configuration.getProperties()).thenReturn(table);
        assertThat(m_SUT.getConfig().dataBits(), is(8));
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(-1));
        table.put(PhysicalLinkAttributes.CONFIG_PROP_DATA_BITS, 7);
        table.put(PhysicalLinkAttributes.CONFIG_PROP_READ_TIMEOUT_MS, 500);
        assertThat(m_SUT.getConfig().dataBits(), is(7));
        assertThat(m_SUT.getConfig().readTimeoutMs(), is(500));
    }
@ Test public void testGetConfig ( ) { Dictionary < String , Object > table = new Hashtable < > ( ) ; when ( m_Configuration . getProperties ( ) ) . thenReturn ( table ) ; assertThat ( m_SUT . getConfig ( ) . dataBits ( ) , is ( 8 ) ) ; assertThat ( m_SUT . getConfig ( ) . readTimeoutMs ( ) , is ( - 1 ) ) ; table . put ( PhysicalLinkAttributes . CONFIG_PROP_DATA_BITS , 7 ) ; table . put ( PhysicalLinkAttributes . CONFIG_PROP_READ_TIMEOUT_MS , 500 ) ; assertThat ( m_SUT . getConfig ( ) . dataBits ( ) , is ( 7 ) ) ; assertThat ( m_SUT . getConfig ( ) . readTimeoutMs ( ) , is ( 500 ) ) ; }
Verify {@link PhysicalLinkImpl#getConfig()} will return an object with the default properties and set properties.
Verify { @link PhysicalLinkImpl#getConfig () } will return an object with the default properties and set properties .
// verify defaults // test overrides