LEAD-633 return storage configuration.
LEAD-633 if the file is exist, we first delete it and construct a new file to achieve a similar behaviour with fileoutputstream.
LEAD-633 return null for now
LEAD-633 added method getStorage().
LEAD-633 test case was wrong. rewrite it.