package cql

import "testing"

func TestFormatClientCustomPayload(t *testing.T) {
	payload := CustomPayload{
		"thread-index": []byte("12"),
		"binary":       []byte{0xde, 0xad, 0xbe, 0xef},
	}

	got := formatClientCustomPayload(payload)
	if got["thread-index"] != "12" {
		t.Fatalf("expected thread-index=12, got %#v", got["thread-index"])
	}
	if got["binary"] != "0xdeadbeef" {
		t.Fatalf("expected binary payload hex preview, got %#v", got["binary"])
	}
}
