mil.dod.th.remote.client/test/mil/dod/th/remote/client/impl/TestMessageSenderServiceImpl.java
@Test
    public void testSendResponse() throws IOException
    {
        // Setup
        m_SUT.setClientId(CLIENT_ID);
        m_SUT.addRemoteChannel(DEST_ID, m_OutStream, m_ChannelCallback);
        TerraHarvestPayload payload = createPayload();

        // Replay
        m_SUT.sendResponse(DEST_ID, payload);

        // Verify
        verify(m_OutStream).write(Mockito.any(byte[].class), anyInt(), anyInt());
    }
/**
     * Verify that sending a response writes the message to the appropriate output stream.
     */
Verify that sending a response writes the message to the appropriate output stream.
Verify that sending a response writes the message to the appropriate output stream .
@Test
    public void testSendResponse() throws IOException
    {
        m_SUT.setClientId(CLIENT_ID);
        m_SUT.addRemoteChannel(DEST_ID, m_OutStream, m_ChannelCallback);
        TerraHarvestPayload payload = createPayload();
        m_SUT.sendResponse(DEST_ID, payload);
        verify(m_OutStream).write(Mockito.any(byte[].class), anyInt(), anyInt());
    }
@ Test public void testSendResponse ( ) throws IOException { m_SUT . setClientId ( CLIENT_ID ) ; m_SUT . addRemoteChannel ( DEST_ID , m_OutStream , m_ChannelCallback ) ; TerraHarvestPayload payload = createPayload ( ) ; m_SUT . sendResponse ( DEST_ID , payload ) ; verify ( m_OutStream ) . write ( Mockito . any ( byte [ ] . class ) , anyInt ( ) , anyInt ( ) ) ; }
Verify that sending a response writes the message to the appropriate output stream.
Verify that sending a response writes the message to the appropriate output stream .
// Setup // Replay // Verify