mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestCustomCommsServiceImpl_Transport.java
@Test
    public void testFindTransportLayer() 
        throws CCommException, IOException, InterruptedException, IllegalArgumentException, IllegalStateException, 
            FactoryException
    {
        String name = "name";
        when(m_TransRegistry.findObjectByName(name)).thenReturn(m_TransInternal);
        
        TransportLayer recvd = m_SUT.findTransportLayer(name);
        
        assertThat(recvd, is(notNullValue()));
        
        //verify reg call
        verify(m_TransRegistry).findObjectByName(name);
    }
/**
     * Verify that a transport layer can be found by name.
     */
Verify that a transport layer can be found by name.
Verify that a transport layer can be found by name .
@Test
    public void testFindTransportLayer() 
        throws CCommException, IOException, InterruptedException, IllegalArgumentException, IllegalStateException, 
            FactoryException
    {
        String name = "name";
        when(m_TransRegistry.findObjectByName(name)).thenReturn(m_TransInternal);
        TransportLayer recvd = m_SUT.findTransportLayer(name);
        assertThat(recvd, is(notNullValue()));
        verify(m_TransRegistry).findObjectByName(name);
    }
@ Test public void testFindTransportLayer ( ) throws CCommException , IOException , InterruptedException , IllegalArgumentException , IllegalStateException , FactoryException { String name = "name" ; when ( m_TransRegistry . findObjectByName ( name ) ) . thenReturn ( m_TransInternal ) ; TransportLayer recvd = m_SUT . findTransportLayer ( name ) ; assertThat ( recvd , is ( notNullValue ( ) ) ) ; verify ( m_TransRegistry ) . findObjectByName ( name ) ; }
Verify that a transport layer can be found by name.
Verify that a transport layer can be found by name .
//verify reg call