Added JUnit test for Uploader class.