mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Physical.java
@Test
    public void testReleasePhysicalLink()
    {
        String name = "name";

        //mocking
        when(m_PhysRegistry.getObjectByName(name)).thenReturn(m_PhysInternal);

        //act
        m_SUT.releasePhysicalLink(name);
        
        verify(m_PhysInternal).release();
    }
/**
     * Verify physical link is called to release.
     */
Verify physical link is called to release.
Verify physical link is called to release .
@Test
    public void testReleasePhysicalLink()
    {
        String name = "name";
        when(m_PhysRegistry.getObjectByName(name)).thenReturn(m_PhysInternal);
        m_SUT.releasePhysicalLink(name);
        verify(m_PhysInternal).release();
    }
@ Test public void testReleasePhysicalLink ( ) { String name = "name" ; when ( m_PhysRegistry . getObjectByName ( name ) ) . thenReturn ( m_PhysInternal ) ; m_SUT . releasePhysicalLink ( name ) ; verify ( m_PhysInternal ) . release ( ) ; }
Verify physical link is called to release.
Verify physical link is called to release .
//mocking //act