def METHOD_NAME():
    message = singer.RecordMessage(
        stream="test",
        record={"id": 1, "name": "test"},
    )
    with redirect_stdout(io.StringIO()) as out:
        singer.write_message(message)
    assert out.getvalue() == (
        '{"type": "RECORD", "stream": "test", "record": {"id": 1, "name": "test"}}\n'
    )