mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/messaging/TestMessageWrapperImpl.java
@Test
    public void testTrySendNoEncryptType()
    {
        //sender behavior
        when(m_MessageSender.trySendMessage(sysId, m_Payload)).thenReturn(true);
        
        //call 'trySend'
        boolean result = m_SUT.trySend(sysId);
        
        //verify
        verify(m_MessageSender).trySendMessage(sysId, m_Payload);
        assertThat(result, is(true));
    }
/**
     * Verify that correct information is sent to the message sender service when 'trySend' is called.
     * Verify that the encryption type not being present does not cause an error.
     */
Verify that correct information is sent to the message sender service when 'trySend' is called.
Verify that the encryption type not being present does not cause an error.
Verify that correct information is sent to the message sender service when ' trySend ' is called . Verify that the encryption type not being present does not cause an error .
@Test
    public void testTrySendNoEncryptType()
    {
        when(m_MessageSender.trySendMessage(sysId, m_Payload)).thenReturn(true);
        boolean result = m_SUT.trySend(sysId);
        verify(m_MessageSender).trySendMessage(sysId, m_Payload);
        assertThat(result, is(true));
    }
@ Test public void testTrySendNoEncryptType ( ) { when ( m_MessageSender . trySendMessage ( sysId , m_Payload ) ) . thenReturn ( true ) ; boolean result = m_SUT . trySend ( sysId ) ; verify ( m_MessageSender ) . trySendMessage ( sysId , m_Payload ) ; 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