def METHOD_NAME() -> None:
    class UnknownType(PrimitiveType):
        root: str = "UnknownType"
    with pytest.raises(ValueError) as exc_info:
        construct_writer(UnknownType())
    assert "Unknown type:" in str(exc_info.value)