Modify class JavaWriteToFileTest