func TestSamsungExlink(t *testing.T) {
	device, err := Open(devicePath)
	if err != nil {
		t.Error(err)
	}
	if device.PowerOn() != nil {
		t.Error(err)
	}
	time.Sleep(10 * time.Second)
	if device.VolumeUp() != nil {
		t.Error(err)
	}
	time.Sleep(10 * time.Second)
	if device.VolumeDown() != nil {
		t.Error(err)
	}
	time.Sleep(10 * time.Second)
	if device.SpeakerOff() != nil {
		t.Error(err)
	}
	time.Sleep(10 * time.Second)
	if device.SpeakerOn() != nil {
		t.Error(err)
	}
	time.Sleep(10 * time.Second)
	if device.SourceHDMI1() != nil {
		t.Error(err)
	}
	time.Sleep(10 * time.Second)
	if device.SourceHDMI2() != nil {
		t.Error(err)
	}
	time.Sleep(10 * time.Second)
	if device.PowerOff() != nil {
		t.Error(err)
	}
	if device.Close() != nil {
		t.Error(err)
	}
}
sleep in between test commands so you can watch the results on your TV
package exlink
import (
	"testing"
	"time"
)
const (
	devicePath = "/dev/ttyUSB0"
)