def METHOD_NAME() -> None:
    """Test get_server_message_from_task_ins."""
    expected_server_message = ServerMessage(
        reconnect_ins=ServerMessage.ReconnectIns(seconds=3)
    )
    task_ins = TaskIns(task=Task(legacy_server_message=expected_server_message))
    msg_t = get_server_message_from_task_ins(task_ins, exclude_reconnect_ins=True)
    msg_f = get_server_message_from_task_ins(task_ins, exclude_reconnect_ins=False)
    assert msg_t is None
    assert msg_f == expected_server_message