package hello

import (
	"net/http/httptest"
	"testing"
)

func TestHelloHandler(t *testing.T) {
	w := httptest.NewRecorder()
	req := httptest.NewRequest("GET", "/hello", nil)
	Handler(w, req)
	expected := "Hello, World!"
	if w.Body.String() != expected {
		t.Errorf("Expected %q but got %q", expected, w.Body.String())
	}
}
