Pass a local file in to URL in Java by IT Nursery How do I create a new URL object using a local file, for the purpose of unit tests? 8 Answers 8