mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/ccomm/TestLinkLayerRegistryCallback.java
@Test
    public void testOnRemovedObject_NoPhysicalLink()
    {
        LinkLayerInternal linkInternal = mock(LinkLayerInternal.class);
        when(linkInternal.isActivated()).thenReturn(true);
        
        m_SUT.onRemovedObject(linkInternal);
        
        verify(linkInternal).deactivateLayer();
    }
/**
     * Verify remove is handled even if no physical link
     */
Verify remove is handled even if no physical link
Verify remove is handled even if no physical link
@Test
    public void testOnRemovedObject_NoPhysicalLink()
    {
        LinkLayerInternal linkInternal = mock(LinkLayerInternal.class);
        when(linkInternal.isActivated()).thenReturn(true);
        m_SUT.onRemovedObject(linkInternal);
        verify(linkInternal).deactivateLayer();
    }
@ Test public void testOnRemovedObject_NoPhysicalLink ( ) { LinkLayerInternal linkInternal = mock ( LinkLayerInternal . class ) ; when ( linkInternal . isActivated ( ) ) . thenReturn ( true ) ; m_SUT . onRemovedObject ( linkInternal ) ; verify ( linkInternal ) . deactivateLayer ( ) ; }
Verify remove is handled even if no physical link
Verify remove is handled even if no physical link