mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/ccomms/TestCustomCommsMessageService.java
@Test
    public void testActivateDeactivate()
    {   
        // m_SUT.activate(); <- this is performed during set-up, no need to repeat.
        // verify service is bound. 
        verify(m_MessageRouter).bindMessageService(m_SUT);
        
        m_SUT.deactivate();
        
        // verify service is unbound
        verify(m_MessageRouter).unbindMessageService(m_SUT);
        
        // reactivate for other tests
        m_SUT.activate();
    }
/**
     * Verify message service is registered on activation and unregistered on deactivation.
     */
Verify message service is registered on activation and unregistered on deactivation.
Verify message service is registered on activation and unregistered on deactivation .
@Test
    public void testActivateDeactivate()
    {   
        verify(m_MessageRouter).bindMessageService(m_SUT);
        m_SUT.deactivate();
        verify(m_MessageRouter).unbindMessageService(m_SUT);
        m_SUT.activate();
    }
@ Test public void testActivateDeactivate ( ) { verify ( m_MessageRouter ) . bindMessageService ( m_SUT ) ; m_SUT . deactivate ( ) ; verify ( m_MessageRouter ) . unbindMessageService ( m_SUT ) ; m_SUT . activate ( ) ; }
Verify message service is registered on activation and unregistered on deactivation.
Verify message service is registered on activation and unregistered on deactivation .
// m_SUT.activate(); <- this is performed during set-up, no need to repeat. // verify service is bound.  // verify service is unbound // reactivate for other tests