Integration test for send and receive message.