title: How to test file transfer restarting code [setRestartOffset(offset) in Commons NET API]?
body: <p>I wrote small FTP Client Applet which uploads files to FTP Server using Commons Net API. In my code I handled 'CopyStreamException' and trying to restart the same file transfer by setting the offset using FTPClient.setRestartOffset() method.</p>
  
  <p>Is there any proper way to test this part of the code?</p>
  
  <p>I tried by disconnecting my internet connection and the the applet did restarted the same file transfer with proper offset but the server gave a 550 reply with description 'The process cannot access the file because it is being used by another process.'!!!</p>
  
  <p>Any help is appreciated</p>
  
  <p>Thanks.</p>