Add License clause to example_newgenerator_test.go