How Not To Write Golden Master Tests

And from where, when and how would you call the main() function?