Test::Warn provides a few convenience methods for testing warning based code.