Changed test repositoryto "test"
Added code to get InputStream
Added code to write from InputStream to OutputStream
Removed print statements
Changed test repository to "test"
Renamed the file to copy to "test.txt"
Converted project to Maven
Added code to close the outputStream
classpath was modified
Removed bar method

I added it to check if it does anything. It doesn't
Renamed copied file as "copiedFile.txt"