mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Physical.java
@Test
    public void testCreatePhysicalLinkFactoryKnown() throws CCommException, IOException, 
        InterruptedException, FactoryException, FactoryObjectInformationException, 
        IllegalArgumentException, ClassNotFoundException
    {
        String name = "Some_Name";
        PhysicalLink physicalLink = m_SUT.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT, name);

        assertThat(physicalLink, is(notNullValue()));
        verify(m_PhysRegistry).createNewObject(m_PhysFactory, name, new Hashtable<String, Object>());
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
    }
/**
     * Verify that a physical link can be created when the physical link factory is known to the service.
     */
Verify that a physical link can be created when the physical link factory is known to the service.
Verify that a physical link can be created when the physical link factory is known to the service .
@Test
    public void testCreatePhysicalLinkFactoryKnown() throws CCommException, IOException, 
        InterruptedException, FactoryException, FactoryObjectInformationException, 
        IllegalArgumentException, ClassNotFoundException
    {
        String name = "Some_Name";
        PhysicalLink physicalLink = m_SUT.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT, name);
        assertThat(physicalLink, is(notNullValue()));
        verify(m_PhysRegistry).createNewObject(m_PhysFactory, name, new Hashtable<String, Object>());
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
    }
@ Test public void testCreatePhysicalLinkFactoryKnown ( ) throws CCommException , IOException , InterruptedException , FactoryException , FactoryObjectInformationException , IllegalArgumentException , ClassNotFoundException { String name = "Some_Name" ; PhysicalLink physicalLink = m_SUT . createPhysicalLink ( PhysicalLinkTypeEnum . SERIAL_PORT , name ) ; assertThat ( physicalLink , is ( notNullValue ( ) ) ) ; verify ( m_PhysRegistry ) . createNewObject ( m_PhysFactory , name , new Hashtable < String , Object > ( ) ) ; verify ( m_WakeLock ) . activate ( ) ; verify ( m_WakeLock ) . cancel ( ) ; }
Verify that a physical link can be created when the physical link factory is known to the service.
Verify that a physical link can be created when the physical link factory is known to the service .