mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/TestAbstractFactoryObject.java
@Test
    public void testGetExtensionTypes_Empty()
    {
        when(m_FactoryProxy.getExtensions()).thenReturn(null);
        m_SUT.initialize(m_Registry, m_FactoryProxy, factoryInternal, m_ConfigAdmin, m_EventAdmin, m_PowerInternal,
                OBJ_UUID, OBJ_NAME, OBJ_PID, OBJ_BASETYPE);
        
        Set<Class<?>> expectedSet = new HashSet<>();
        assertThat(m_SUT.getExtensionTypes(), is(expectedSet));
    }
/**
     * Verify types list is empty if proxy returns null.
     */
Verify types list is empty if proxy returns null.
Verify types list is empty if proxy returns null .
@Test
    public void testGetExtensionTypes_Empty()
    {
        when(m_FactoryProxy.getExtensions()).thenReturn(null);
        m_SUT.initialize(m_Registry, m_FactoryProxy, factoryInternal, m_ConfigAdmin, m_EventAdmin, m_PowerInternal,
                OBJ_UUID, OBJ_NAME, OBJ_PID, OBJ_BASETYPE);
        Set<Class<?>> expectedSet = new HashSet<>();
        assertThat(m_SUT.getExtensionTypes(), is(expectedSet));
    }
@ Test public void testGetExtensionTypes_Empty ( ) { when ( m_FactoryProxy . getExtensions ( ) ) . thenReturn ( null ) ; m_SUT . initialize ( m_Registry , m_FactoryProxy , factoryInternal , m_ConfigAdmin , m_EventAdmin , m_PowerInternal , OBJ_UUID , OBJ_NAME , OBJ_PID , OBJ_BASETYPE ) ; Set < Class < ? > > expectedSet = new HashSet < > ( ) ; assertThat ( m_SUT . getExtensionTypes ( ) , is ( expectedSet ) ) ; }
Verify types list is empty if proxy returns null.
Verify types list is empty if proxy returns null .