mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Physical.java
@Test 
    public void testPhysicalLinkIsOpen() throws InterruptedException, IllegalArgumentException, 
        CCommException, FactoryObjectInformationException, PhysicalLinkException 
    {
        String name = "platter";
        
        //mock
        when(m_PhysRegistry.getObjectByName(name)).thenReturn(m_PhysInternal);
        when(m_PhysInternal.isOpen()).thenReturn(true);
        
        //assert
        assertThat(m_SUT.isPhysicalLinkOpen(name), is(true));
    }
/**
     * Verify that a physical link can be opened and closed properly and that the correct values for whether it is 
     * open or not are received.
     */
Verify that a physical link can be opened and closed properly and that the correct values for whether it is
open or not are received.
Verify that a physical link can be opened and closed properly and that the correct values for whether it is open or not are received .
@Test 
    public void testPhysicalLinkIsOpen() throws InterruptedException, IllegalArgumentException, 
        CCommException, FactoryObjectInformationException, PhysicalLinkException 
    {
        String name = "platter";
        when(m_PhysRegistry.getObjectByName(name)).thenReturn(m_PhysInternal);
        when(m_PhysInternal.isOpen()).thenReturn(true);
        assertThat(m_SUT.isPhysicalLinkOpen(name), is(true));
    }
@ Test public void testPhysicalLinkIsOpen ( ) throws InterruptedException , IllegalArgumentException , CCommException , FactoryObjectInformationException , PhysicalLinkException { String name = "platter" ; when ( m_PhysRegistry . getObjectByName ( name ) ) . thenReturn ( m_PhysInternal ) ; when ( m_PhysInternal . isOpen ( ) ) . thenReturn ( true ) ; assertThat ( m_SUT . isPhysicalLinkOpen ( name ) , is ( true ) ) ; }
Verify that a physical link can be opened and closed properly and that the correct values for whether it is
 open or not are received.
Verify that a physical link can be opened and closed properly and that the correct values for whether it is open or not are received .
//mock //assert