mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/messaging/TestMessageWrapperImpl.java
@Test
    public void testTrySend()
    {
        //sender behavior
        when(m_MessageSender.trySendMessage(sysId, m_Payload, EncryptType.NONE)).thenReturn(true);
        
        //call 'trySend'
        boolean result = m_SUT.trySend(sysId, EncryptType.NONE);
        
        //verify
        verify(m_MessageSender).trySendMessage(sysId, m_Payload, EncryptType.NONE);
        assertThat(result, is(true));
    }
/**
     * Verify that correct information is sent to the message sender service when 'trySend' is called.
     */
Verify that correct information is sent to the message sender service when 'trySend' is called.
Verify that correct information is sent to the message sender service when ' trySend ' is called .
@Test
    public void testTrySend()
    {
        when(m_MessageSender.trySendMessage(sysId, m_Payload, EncryptType.NONE)).thenReturn(true);
        boolean result = m_SUT.trySend(sysId, EncryptType.NONE);
        verify(m_MessageSender).trySendMessage(sysId, m_Payload, EncryptType.NONE);
        assertThat(result, is(true));
    }
@ Test public void testTrySend ( ) { when ( m_MessageSender . trySendMessage ( sysId , m_Payload , EncryptType . NONE ) ) . thenReturn ( true ) ; boolean result = m_SUT . trySend ( sysId , EncryptType . NONE ) ; verify ( m_MessageSender ) . trySendMessage ( sysId , m_Payload , EncryptType . NONE ) ; assertThat ( result , is ( true ) ) ; }
Verify that correct information is sent to the message sender service when 'trySend' is called.
Verify that correct information is sent to the message sender service when ' trySend ' is called .
//sender behavior //call 'trySend' //verify