mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Physical.java
@Test
    public void testGetPhysicalLinkPidNoConfiguration() throws IllegalArgumentException, CCommException, 
        FactoryObjectInformationException  
    {
        String name = "name";
        String pid = "pid";
        
        PhysicalLink phys = m_SUT.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT, name);

        //mocking
        when(m_PhysRegistry.getObjectByUuid(phys.getUuid())).thenReturn(m_PhysInternal);
        when(m_PhysInternal.getPid()).thenReturn(pid);
        
        String pidRtrvd = m_SUT.getPhysicalLinkPid(phys.getUuid());
        
        //assert
        assertThat(pidRtrvd, is(pid));
    }
/**
     * Verify that a physical link PID can be retrieved with the UUID of a physical link without
     * a configuration.
     */
Verify that a physical link PID can be retrieved with the UUID of a physical link without
a configuration.
Verify that a physical link PID can be retrieved with the UUID of a physical link without a configuration .
@Test
    public void testGetPhysicalLinkPidNoConfiguration() throws IllegalArgumentException, CCommException, 
        FactoryObjectInformationException  
    {
        String name = "name";
        String pid = "pid";
        PhysicalLink phys = m_SUT.createPhysicalLink(PhysicalLinkTypeEnum.SERIAL_PORT, name);
        when(m_PhysRegistry.getObjectByUuid(phys.getUuid())).thenReturn(m_PhysInternal);
        when(m_PhysInternal.getPid()).thenReturn(pid);
        String pidRtrvd = m_SUT.getPhysicalLinkPid(phys.getUuid());
        assertThat(pidRtrvd, is(pid));
    }
@ Test public void testGetPhysicalLinkPidNoConfiguration ( ) throws IllegalArgumentException , CCommException , FactoryObjectInformationException { String name = "name" ; String pid = "pid" ; PhysicalLink phys = m_SUT . createPhysicalLink ( PhysicalLinkTypeEnum . SERIAL_PORT , name ) ; when ( m_PhysRegistry . getObjectByUuid ( phys . getUuid ( ) ) ) . thenReturn ( m_PhysInternal ) ; when ( m_PhysInternal . getPid ( ) ) . thenReturn ( pid ) ; String pidRtrvd = m_SUT . getPhysicalLinkPid ( phys . getUuid ( ) ) ; assertThat ( pidRtrvd , is ( pid ) ) ; }
Verify that a physical link PID can be retrieved with the UUID of a physical link without
 a configuration.
Verify that a physical link PID can be retrieved with the UUID of a physical link without a configuration .
//mocking //assert