'Test to check the appropriate calls are made
@since 3.9
@jira_ticket PYTHON-713
@expected_result the values are correctly written
@test_category connection'

def test_prepare_message(self):

    message = PrepareMessage('a')
    io = Mock()
    message.send_body(io, 4)
    self._check_calls(io, [('\x00\x00\x00\x01',), ('a',)])
    io.reset_mock()
    message.send_body(io, 5)
    self._check_calls(io, [('\x00\x00\x00\x01',), ('a',), ('\x00\x00\x00\x00',)])
