mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/TestAbstractFactoryObject.java
@Test
    public void testGetProperties() throws IllegalArgumentException, IllegalStateException, 
        IOException, ConfigurationException, FactoryException
    {
        Configuration config = ConfigurationAdminMocker.getConfigByPid(OBJ_PID);
        Dictionary<String, Object> map = new Hashtable<>();
        map.put("key1", "value1");
        when(config.getProperties()).thenReturn(map);
        
        assertThat(m_SUT.getProperties(), hasEntry("key1", (Object)"value1"));
    }
/**
     * Verify that a configuration property value can be retrieved.
     */
Verify that a configuration property value can be retrieved.
Verify that a configuration property value can be retrieved .
@Test
    public void testGetProperties() throws IllegalArgumentException, IllegalStateException, 
        IOException, ConfigurationException, FactoryException
    {
        Configuration config = ConfigurationAdminMocker.getConfigByPid(OBJ_PID);
        Dictionary<String, Object> map = new Hashtable<>();
        map.put("key1", "value1");
        when(config.getProperties()).thenReturn(map);
        assertThat(m_SUT.getProperties(), hasEntry("key1", (Object)"value1"));
    }
@ Test public void testGetProperties ( ) throws IllegalArgumentException , IllegalStateException , IOException , ConfigurationException , FactoryException { Configuration config = ConfigurationAdminMocker . getConfigByPid ( OBJ_PID ) ; Dictionary < String , Object > map = new Hashtable < > ( ) ; map . put ( "key1" , "value1" ) ; when ( config . getProperties ( ) ) . thenReturn ( map ) ; assertThat ( m_SUT . getProperties ( ) , hasEntry ( "key1" , ( Object ) "value1" ) ) ; }
Verify that a configuration property value can be retrieved.
Verify that a configuration property value can be retrieved .