mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Physical.java
@Test
    public void testCreatePhysicalLinkFactoryKnownWithProps() throws CCommException, IOException, 
        InterruptedException, FactoryException, FactoryObjectInformationException, 
        IllegalArgumentException
    {
        String name = "Some_Name";
        Map<String, Object> props = new HashMap<>();
        props.put("key", "value");
        PhysicalLink physicalLink = m_SUT.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT, name, props);

        assertThat(physicalLink, is(notNullValue()));
        verify(m_PhysRegistry).createNewObject(m_PhysFactory, name, props);
        verify(m_PhysInternal, never()).setProperties(props);
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
    }
/**
     * Verify that a physical link can be created with properties and that the properties are passed to the registry,
     * and not set afterward.
     */
Verify that a physical link can be created with properties and that the properties are passed to the registry,
and not set afterward.
Verify that a physical link can be created with properties and that the properties are passed to the registry and not set afterward .
@Test
    public void testCreatePhysicalLinkFactoryKnownWithProps() throws CCommException, IOException, 
        InterruptedException, FactoryException, FactoryObjectInformationException, 
        IllegalArgumentException
    {
        String name = "Some_Name";
        Map<String, Object> props = new HashMap<>();
        props.put("key", "value");
        PhysicalLink physicalLink = m_SUT.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT, name, props);
        assertThat(physicalLink, is(notNullValue()));
        verify(m_PhysRegistry).createNewObject(m_PhysFactory, name, props);
        verify(m_PhysInternal, never()).setProperties(props);
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
    }
@ Test public void testCreatePhysicalLinkFactoryKnownWithProps ( ) throws CCommException , IOException , InterruptedException , FactoryException , FactoryObjectInformationException , IllegalArgumentException { String name = "Some_Name" ; Map < String , Object > props = new HashMap < > ( ) ; props . put ( "key" , "value" ) ; PhysicalLink physicalLink = m_SUT . createPhysicalLink ( PhysicalLinkTypeEnum . SERIAL_PORT , name , props ) ; assertThat ( physicalLink , is ( notNullValue ( ) ) ) ; verify ( m_PhysRegistry ) . createNewObject ( m_PhysFactory , name , props ) ; verify ( m_PhysInternal , never ( ) ) . setProperties ( props ) ; verify ( m_WakeLock ) . activate ( ) ; verify ( m_WakeLock ) . cancel ( ) ; }
Verify that a physical link can be created with properties and that the properties are passed to the registry,
 and not set afterward.
Verify that a physical link can be created with properties and that the properties are passed to the registry and not set afterward .