mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetImpl.java
@Test
    public void testGetConfig()
    {
        Dictionary<String, Object> table = new Hashtable<>();
        when(m_Configuration.getProperties()).thenReturn(table);

        // verify defaults
        assertThat(m_SUT.getConfig().activateOnStartup(), is(false));
        assertThat(m_SUT.getConfig().pluginOverridesPosition(), is(false));

        // test overrides
        table.put(AssetAttributes.CONFIG_PROP_ACTIVATE_ON_STARTUP, true);
        table.put(AssetAttributes.CONFIG_PROP_PLUGIN_OVERRIDES_POSITION, true);
        assertThat(m_SUT.getConfig().activateOnStartup(), is(true));
        assertThat(m_SUT.getConfig().pluginOverridesPosition(), is(true));
    }
/**
     * Verify {@link AssetImpl#getConfig()} will return an object with the default properties and set properties.
     */
Verify  AssetImpl#getConfig() will return an object with the default properties and set properties.
Verify AssetImpl#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().activateOnStartup(), is(false));
        assertThat(m_SUT.getConfig().pluginOverridesPosition(), is(false));
        table.put(AssetAttributes.CONFIG_PROP_ACTIVATE_ON_STARTUP, true);
        table.put(AssetAttributes.CONFIG_PROP_PLUGIN_OVERRIDES_POSITION, true);
        assertThat(m_SUT.getConfig().activateOnStartup(), is(true));
        assertThat(m_SUT.getConfig().pluginOverridesPosition(), is(true));
    }
@ Test public void testGetConfig ( ) { Dictionary < String , Object > table = new Hashtable < > ( ) ; when ( m_Configuration . getProperties ( ) ) . thenReturn ( table ) ; assertThat ( m_SUT . getConfig ( ) . activateOnStartup ( ) , is ( false ) ) ; assertThat ( m_SUT . getConfig ( ) . pluginOverridesPosition ( ) , is ( false ) ) ; table . put ( AssetAttributes . CONFIG_PROP_ACTIVATE_ON_STARTUP , true ) ; table . put ( AssetAttributes . CONFIG_PROP_PLUGIN_OVERRIDES_POSITION , true ) ; assertThat ( m_SUT . getConfig ( ) . activateOnStartup ( ) , is ( true ) ) ; assertThat ( m_SUT . getConfig ( ) . pluginOverridesPosition ( ) , is ( true ) ) ; }
Verify {@link AssetImpl#getConfig()} will return an object with the default properties and set properties.
Verify { @link AssetImpl#getConfig () } will return an object with the default properties and set properties .
// verify defaults // test overrides