Slightly changed the timing of the SimpleURLRegistryTest to avoid failure due to clock issues. Improved the file write method in the test case to flush the stream before closing.

git-svn-id: https://svn.apache.org/repos/asf/synapse/trunk@1513732 13f79535-47bb-0310-9956-ffa450edef68