Move the DEFAULT_HOSTNAME to the EventBuilder class
Use TimeUnit to do time conversion instead of hardcoded numbers
Mock the getCanonicalHostName of localHost
Add a test for the case where getCanonicalHostName is too slow