mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/messaging/TestMessageWrapperImpl.java
@Test
    public void testQueue()
    {
        //sender behavior
        when(m_MessageSender.queueMessage(sysId, m_Payload, EncryptType.AES_ECDH_ECDSA, null)).thenReturn(false);
        
        //call 'queue'
        boolean result = m_SUT.queue(sysId, EncryptType.AES_ECDH_ECDSA, null);
        
        //verify
        verify(m_MessageSender).queueMessage(sysId, m_Payload, EncryptType.AES_ECDH_ECDSA, null);
        assertThat(result, is(false));
    }
/**
     * Verify that correct information is sent to the message sender service when 'queue' is called.
     * This test is without a {@link ResponseHandler}.
     */
Verify that correct information is sent to the message sender service when 'queue' is called.
This test is without a  ResponseHandler.
Verify that correct information is sent to the message sender service when ' queue ' is called . This test is without a ResponseHandler .
@Test
    public void testQueue()
    {
        when(m_MessageSender.queueMessage(sysId, m_Payload, EncryptType.AES_ECDH_ECDSA, null)).thenReturn(false);
        boolean result = m_SUT.queue(sysId, EncryptType.AES_ECDH_ECDSA, null);
        verify(m_MessageSender).queueMessage(sysId, m_Payload, EncryptType.AES_ECDH_ECDSA, null);
        assertThat(result, is(false));
    }
@ Test public void testQueue ( ) { when ( m_MessageSender . queueMessage ( sysId , m_Payload , EncryptType . AES_ECDH_ECDSA , null ) ) . thenReturn ( false ) ; boolean result = m_SUT . queue ( sysId , EncryptType . AES_ECDH_ECDSA , null ) ; verify ( m_MessageSender ) . queueMessage ( sysId , m_Payload , EncryptType . AES_ECDH_ECDSA , null ) ; assertThat ( result , is ( false ) ) ; }
Verify that correct information is sent to the message sender service when 'queue' is called.
Verify that correct information is sent to the message sender service when ' queue ' is called .
//sender behavior //call 'queue' //verify