def METHOD_NAME(self):
    """Initialize the test environment and builds request/result encoding pairs."""
    self.value = 0xABCD
    self.values = [0xA, 0xB, 0xC]
    builder = BinaryPayloadBuilder(byteorder=Endian.BIG)
    builder.add_16bit_uint(0x1234)
    self.payload = builder.build()
    self.write = {
        WriteSingleRegisterRequest(1, self.value): b"\x00\x01\xab\xcd",
        WriteSingleRegisterResponse(1, self.value): b"\x00\x01\xab\xcd",
        WriteMultipleRegistersRequest(
            1, self.values
        ): b"\x00\x01\x00\x03\x06\x00\x0a\x00\x0b\x00\x0c",
        WriteMultipleRegistersRequest(1, 0xD): b"\x00\x01\x00\x01\x02\x00\x0D",
        WriteMultipleRegistersResponse(1, 5): b"\x00\x01\x00\x05",
        WriteSingleRegisterRequest(
            1, self.payload[0], skip_encode=True
        ): b"\x00\x01\x12\x34",
        WriteMultipleRegistersRequest(
            1, self.payload, skip_encode=True
        ): b"\x00\x01\x00\x01\x02\x12\x34",
    }