def METHOD_NAME() -> None:
    output = io.BytesIO()
    encoder = BinaryEncoder(output)
    schema = StructType(
        NestedField(1, "id", IntegerType(), required=True),
        NestedField(2, "properties", ListType(3, IntegerType()), required=True),
    )
    class MyStruct(Record):
        id: int
        properties: List[int]
    my_struct = MyStruct(id=12, properties=[1, 2, 3, 4])
    construct_writer(schema).write(encoder, my_struct)
    assert output.getbuffer() == b"".join(
        [
            b"\x18",
            zigzag_encode(len(my_struct.properties)),
            zigzag_encode(1),
            zigzag_encode(2),
            zigzag_encode(3),
            zigzag_encode(4),
            b"\x00",
        ]
    )