def METHOD_NAME(self):
    """Initialize the test environment and builds request/result encoding pairs."""
    arguments = {
        "read_address": 1,
        "read_count": 5,
        "write_address": 1,
    }
    self.value = 0xABCD
    self.values = [0xA, 0xB, 0xC]
    self.request_read = {
        ReadRegistersRequestBase(1, 5): b"\x00\x01\x00\x05",
        ReadHoldingRegistersRequest(1, 5): b"\x00\x01\x00\x05",
        ReadInputRegistersRequest(1, 5): b"\x00\x01\x00\x05",
        ReadWriteMultipleRegistersRequest(
            write_registers=[0x00] * 5,
            **arguments,
        ): b"\x00\x01\x00\x05\x00\x01\x00"
        b"\x05\x0a\x00\x00\x00\x00\x00"
        b"\x00\x00\x00\x00\x00",
        ReadWriteMultipleRegistersRequest(
            write_registers=0xAB,
            **arguments,
        ): b"\x00\x01\x00\x05\x00\x01\x00"
        b"\x01\x02\x00\xAB",
    }
    self.response_read = {
        ReadRegistersResponseBase(self.values): TEST_MESSAGE,
        ReadHoldingRegistersResponse(self.values): TEST_MESSAGE,
        ReadInputRegistersResponse(self.values): TEST_MESSAGE,
        ReadWriteMultipleRegistersResponse(self.values): TEST_MESSAGE,
    }