mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Physical.java
@Test 
    public void testRequestPhysicalLinkInUse() throws IllegalArgumentException, CCommException, 
        FactoryObjectInformationException
    {
        String name = "platter";
        
        //mock
        when(m_PhysRegistry.getObjectByName(name)).thenReturn(m_PhysInternal);
        when(m_PhysInternal.isInUse()).thenReturn(true);
        
        //assert
        assertThat(m_SUT.isPhysicalLinkInUse(name), is(true));
    }
/**
     * Verify that if is in use is called that physical link internal obj if fetched from the registry.
     */
Verify that if is in use is called that physical link internal obj if fetched from the registry.
Verify that if is in use is called that physical link internal obj if fetched from the registry .
@Test 
    public void testRequestPhysicalLinkInUse() throws IllegalArgumentException, CCommException, 
        FactoryObjectInformationException
    {
        String name = "platter";
        when(m_PhysRegistry.getObjectByName(name)).thenReturn(m_PhysInternal);
        when(m_PhysInternal.isInUse()).thenReturn(true);
        assertThat(m_SUT.isPhysicalLinkInUse(name), is(true));
    }
@ Test public void testRequestPhysicalLinkInUse ( ) throws IllegalArgumentException , CCommException , FactoryObjectInformationException { String name = "platter" ; when ( m_PhysRegistry . getObjectByName ( name ) ) . thenReturn ( m_PhysInternal ) ; when ( m_PhysInternal . isInUse ( ) ) . thenReturn ( true ) ; assertThat ( m_SUT . isPhysicalLinkInUse ( name ) , is ( true ) ) ; }
Verify that if is in use is called that physical link internal obj if fetched from the registry.
Verify that if is in use is called that physical link internal obj if fetched from the registry .
//mock //assert